from typing import List
from typing import Dict


def order_by_station(order_list: List[Dict], station_name) -> List[tuple]:
    """Returns a list of tuples. The first element of each tuple contains the index of an order that contains the
    station 'station_name'. The second element is the respective index in the station list of the order. Since a station
    can be used by several orders, these tuples are stored in a list.
    """

    indices: List[tuple] = []

    for index, order in enumerate(order_list):
        if station_name in order['station']:
            indices.append((index, order['station'].index(station_name)))

    return indices