code: def _edge_types_contains_canonical_etype(
      can_etype, edge_types, edge_dir
  ):
      src_type, _, dst_type = can_etype
      if edge_dir == "in":
          return dst_type in edge_types
      else:
          return src_type in edge_types
  
file_path: cugraph/python/cugraph/cugraph/gnn/dgl_extensions/utils/sampling.py
imports: import cugraph
  import cudf
  import cupy
  import dask_cudf
label_desc: Use image node_id 4 for calling a global function with example usage: _edge_types_contains_canonical_etype(can_etype, edge_types, edge_dir) and returns: unknown, unknown