code: def format_manager(cls):
          
          if cls._instance is None:
              # Discover the formats and register them with a new singleton.
              cls._instance = cls().register_entrypoints()
          return cls._instance
docs: Return the instance singleton, creating if necessary