code: def path(self, separator="/"):
          
          rt = ""
          for i in reversed(self):
              rt = "{}{}{}".format(rt, i.name, separator)
          return rt[:-1]
docs: :returns: a string representing the path to root element separated by separator