def METHOD_NAME(self, src_path, update: bool = False) -> Callable:
    """Parses a YAML file to a cell function and registers into active pdk.
    Args:
        src_path: the path to the file
        update: if True, will update an existing cell function of the same name without raising an error
    Returns:
        The cell function parsed from the yaml file.
    """
    from gdsfactory.cell import CACHE
    pdk = get_active_pdk()
    print(f"Active PDK: {pdk.name}")
    filepath = pathlib.Path(src_path)
    cell_name = filepath.stem.split(".")[0]
    if cell_name in CACHE:
        CACHE.pop(cell_name)
    function = cell_from_yaml_template(filepath, name=cell_name)
    try:
        pdk.register_cells_yaml(**{cell_name: function}, update=update)
    except ValueError as e:
        print(e)
    return function