def read_scenario_data(file_path, centralize=False):
    """Read a scenario pkl file and return the Scenario Description instance.

    Args:
        file_path: the path to a scenario file (usually ends with `.pkl`).
        centralize: whether to centralize all elements to the ego car's initial position

    Returns:
        The Scenario Description instance of that scenario.
    """
    assert SD.is_scenario_file(file_path), "File: {} is not scenario file".format(file_path)
    with open(file_path, "rb") as f:
        # unpickler = CustomUnpickler(f)
        data = pickle.load(f)
    data = ScenarioDescription(data)
    if centralize:
        data = ScenarioDescription.centralize_to_ego_car_initial_position(data)
    return data
Read a scenario pkl file and return the Scenario Description instance.

    Args:
        file_path: the path to a scenario file (usually ends with `.pkl`).
        centralize: whether to centralize all elements to the ego car's initial position

    Returns:
        The Scenario Description instance of that scenario.
    
metadrive/scenario/utils.py