code: def instance(cls):
          
  
          if not hasattr(cls, "_instance") or cls._instance is None:
              cls._instance = cls()
          return cls._instance
docs: Singleton to return only one instance of BaseManager.
  
          :returns: instance of BaseManager