code: def __init__(self, batch_df=None, batch_id=None):
      if batch_df:
          self._x = batch_df.values.as_tensor()
          self._label = (
              batch_df.label.as_tensor() if batch_df.label else None
          )
          self._weight = (
              batch_df.weight.as_tensor() if batch_df.weight else None
          )
      else:
          self._x = None
          self._label = None
          self._weight = None
  
      self._batch_id = batch_id
  
imports: import random
label_desc: Use image node_id 1 to create a new BatchEncoding object from inherited base classes: object with example: obj = BatchEncoding(batch_df, batch_id)