docs: def get_instrument(self):
          """
          Returns: the instrument and the path to the instrument to which this item belongs
          """
  
          if isinstance(self.value, Instrument):
              instrument = self.value
              path_to_instrument = []
          else:
              instrument = None
              parent = self.parent()
              path_to_instrument = [self.name]
              while parent is not None:
                  if isinstance(parent.value, Instrument):
                      instrument = parent.value
                      parent = None
                  else:
                      path_to_instrument.append(parent.name)
                      parent = parent.parent()
  
          return instrument, path_to_instrument