def edge_type_to_id(
        self, edge_type_to_id: Optional[Dict[str, int]]
    ) -> None:
        """Sets the edge type to id dictionary if present."""
        self._c_csc_graph.set_edge_type_to_id(edge_type_to_id)
Sets the edge type to id dictionary if present.
python/dgl/graphbolt/impl/fused_csc_sampling_graph.py