def METHOD_NAME(
    filename: str | IO[Any] | pathlib.Path,
    name: str,
    routing_strategy: dict[str, Callable] | None = None,
) -> Callable:
    """Gets a PIC factory function from a yaml definition, which can optionally be a jinja template.
    Args:
        filename: the filepath of the pic yaml template.
        name: the name of the component to create.
        routing_strategy: a dictionary of routing functions.
    Returns:
         a factory function for the component.
    """
    from gdsfactory.pdk import get_routing_strategies
    if routing_strategy is None:
        routing_strategy = get_routing_strategies()
    return yaml_cell(
        yaml_definition=filename, name=name, routing_strategy=routing_strategy
    )