code: def get_weight(self):
          
          if self.weight is None:
              self.weight = self.get_field('weight')
          return self.weight
docs: Get the weight of the Dataset.
  
          Returns
          -------
          weight : numpy array or None
              Weight for each data point from the Dataset.