code: def InnermostClass(self):
      
      for i in range(len(self.stack), 0, -1):
        classinfo = self.stack[i - 1]
        if isinstance(classinfo, _ClassInfo):
          return classinfo
      return None
docs: Get class info on the top of the stack.
  
      Returns:
        A _ClassInfo object if we are inside a class, or None otherwise.