code: def __init__(self, depth=None, labels=None):
      self.depth = depth
      self.labels = labels
      if self.depth is None and self.labels is None:
          raise ValueError("Must specify either depth or labels.")
  
imports: from spektral.utils import label_to_one_hot, one_hot
label_desc: Use image node_id 1 to create a new OneHotLabels object  with example: obj = OneHotLabels(depth, labels)