class_docstr: Adds the node degree as one hot encodings to the node features
  (functional name: :obj:`one_hot_degree`).
  
  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,
      in_degree: bool = False,
      cat: bool = True,
  ) -> None:
      self.max_degree = max_degree
      self.in_degree = in_degree
      self.cat = cat
  
file_path: pytorch_geometric/torch_geometric/transforms/one_hot_degree.py
imports: import torch
  from torch_geometric.data import Data
  from torch_geometric.data.datapipes import functional_transform
  from torch_geometric.transforms import BaseTransform
  from torch_geometric.utils import degree, one_hot
label_desc: Use image node_id 1 to create a new OneHotDegree object from inherited base classes: BaseTransform with example: obj = OneHotDegree(max_degree, in_degree, cat)