class_docstr: Adds the node degree as one hot encodings to the node features.
  
  Args:
      max_degree (int): Maximum degree.
      in_degree (bool, optional): If set to :obj:`True`, will compute the
          in-degree of nodes instead of the out-degree.
          (default: :obj:`False`)
      cat (bool, optional): Concat node degrees to node features instead
          of replacing them. (default: :obj:`True`)
code: def __init__(
      self,
      max_degree: int = 1000,
      in_degree: bool = False,
      cat: bool = True,
  ):
      self.__max_degree: int = max_degree
      self.__in_degree: bool = in_degree
      self.__cat: bool = cat
      super(OneHotDegreeGenerator, self).__init__()
  
file_path: AutoGL/autogl/module/preprocessing/feature_engineering/_generators/_pyg.py
imports: import torch.nn.functional
  import autogl
  from ._basic import BaseFeatureGenerator
  from ._pyg_impl import degree, scatter_min, scatter_max, scatter_mean, scatter_std
  from ..._data_preprocessor_registry import DataPreprocessorUniversalRegistry
label_desc: Use image node_id 1 to create a new OneHotDegreeGenerator object from inherited base classes: BaseFeatureGenerator with example: obj = OneHotDegreeGenerator(max_degree, in_degree, cat)