class_docstr: A sampling graph in CSC format.
class_docstr_tok: ["A","sampling","graph","in","CSC","format","."]
docstr: Sets the edge type tensor if present.
docstr_tok: ["Sets","the","edge","type","tensor","if","present","."]
code: def type_per_edge(
      self, type_per_edge: Optional[torch.Tensor]
  ) -> None:
      """Sets the edge type tensor if present."""
      self._c_csc_graph.set_type_per_edge(type_per_edge)
  
imports: from typing import Dict, Optional, Union
  import torch
  from dgl.utils import recursive_apply
  from ...base import EID, ETYPE, NID, NTYPE
  from ...convert import to_homogeneous
  from ...heterograph import DGLGraph
  from ..base import etype_str_to_tuple, etype_tuple_to_str, ORIGINAL_EDGE_ID
  from ..sampling_graph import SamplingGraph
  from .sampled_subgraph_impl import CSCFormatBase, SampledSubgraphImpl
label_desc: Use image node_id 15 for calling the FusedCSCSamplingGraph obj's underlying member method code with example usage: obj.type_per_edge(type_per_edge) without return types