from typing import List


def change_station_dropdown(order_list: List[dict], station_name: str) -> List[dict]:
    """
    This function creates the dropdown options for the 'change station' window. It passes the list of orders and a name
    of a station. Now a structured output is generated, in which all orders are contained, in which this station occurs.
    The output has the following structure:

    [{'label': 'order_name', 'value': 'order_name'}]
    """

    dropdown_opt: List[dict] = []

    for order in order_list:
        if station_name in order['station']:
            order_name: str = order['name']
            dropdown_opt.append({'label': order_name, 'value': order_name})

    return dropdown_opt