code: def __init__(
      self,
      source_node_type: str,
      relation_type: str,
      target_node_type: str,
  ):
      if not isinstance(source_node_type, str):
          raise TypeError
      elif " " in source_node_type:
          raise ValueError
      if not isinstance(relation_type, str):
          raise TypeError
      elif " " in relation_type:
          raise ValueError
      if not isinstance(target_node_type, str):
          raise TypeError
      elif " " in target_node_type:
          raise ValueError
      self.__source_node_type: str = source_node_type
      self.__relation_type: str = relation_type
      self.__destination_node_type: str = target_node_type
  
file_path: AutoGL/autogl/data/graph/_general_static_graph/_canonical_edge_type.py
imports: import typing
label_desc: Use image node_id 1 to create a new CanonicalEdgeType object from inherited base classes: _typing.Sequence with example: obj = CanonicalEdgeType(source_node_type, relation_type, target_node_type)