code: def global_instance(cls):
          
          try:
              return GLOBAL_BATCHER.instance
          except AttributeError:
  
              instance = PrioritizedBatcher(
                  **getattr(settings, 'PRIORITIZED_BATCHER', {})
              )
              GLOBAL_BATCHER.instance = instance
              return instance
docs: Return a per-thread global batcher instance.