@property
  def ancestors(self):
    if self.parent:
      return self.parent.ancestors + [self.parent]
    return []
Return the objects from my ultimate parent down to my immediate parent.
dataset/ETHPy150Open google/apis-client-generator/src/googleapis/codegen/template_objects.py/CodeObject.ancestors