code: def top(self) -> "InstanceNode":
          
          inst = self
          while inst.parinst:
              inst = inst.up()
          return inst
docs: Return an instance node corresponding to the root of the data tree.