code: def getmro(cls):
      "Return tuple of base classes (including cls) in method resolution order."
      if hasattr(cls, "__mro__"):
          return cls.__mro__
      else:
          result = []
          _searchbases(cls, result)
          return tuple(resultf getmro(cls):
      "Return tuple of base classes (including cls) in method resolution order."
      if hasattr(cls, "__mro__"):
          return cls.__mro__
      else:
          result = []
          _searchbases(cls, result)
          return tuple(result)
docs: Return tuple of base classes (including cls) in method resolution order.