def METHOD_NAME(
    io_gratings: list[ComponentReference],
    ordered_ports: list[Port],
    component_name: str,
    layer_label: tuple[int, int] = (10, 0),
    gc_port_name: str = "o1",
    port_index: int = 1,
    get_input_label_text_function: Callable = get_input_label_text,