code: def label(self, label):
          
          if self.direction in ['i'] and label is not None:
              raise ValueError("label not accepted for indep dimension")
  
  
          if label is None:
              self._label = label
              return
  
          if not isinstance(label, str):
              try:
                  label = str(label)
              except:
                  raise TypeError("label must be of type str")
  
          self._label = label
docs: set the label