code: def __call__(self, value):
      return self.embedding(
          torch.as_tensor(self.categories.index(value))
      )
  
file_path: typedb-ml/typedb_ml/pytorch_geometric/transform/encode.py
imports: from typing import List
  import torch
  from torch.nn import Embedding
  from typedb_ml.networkx.iterate import multidigraph_node_data_iterator, multidigraph_edge_data_iterator
label_desc: Use image node_id 2 for calling the CategoricalEncoder obj's underlying member method code with example usage: obj.__call__(value) and returns: self