<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def format_manager(cls):
 """Return the instance singleton, creating if necessary """

        if cls._instance is None:
            # Discover the formats and register them with a new singleton.
            cls._instance = cls().register_entrypoints()
        return cls._instance