code: def __call__(self, graph):
      if self.labels is not None:
          graph.y = label_to_one_hot(graph.y, self.labels)
      else:
          graph.y = one_hot(graph.y, self.depth)
  
      return graph
  
imports: from spektral.utils import label_to_one_hot, one_hot
label_desc: Use image node_id 2 for calling the OneHotLabels obj's underlying member method code with example usage: obj.__call__(graph) and returns: graph