def METHOD_NAME(cls, graph: Union[TileableGraph, ChunkGraph]) -> "SerializableGraph":
    from ..operand import Fetch
    is_chunk = isinstance(graph, ChunkGraph)
    return SerializableGraph(
        _is_chunk=is_chunk,
        _fetch_nodes=[chunk for chunk in graph if isinstance(chunk.op, Fetch)],
        _nodes=graph._nodes,
        _predecessors=graph._predecessors,
        _successors=graph._successors,
        _results=graph.results,
    )