code: def disable_gc_diagnosis(force=False):
      """
      Ask to disable global GC diagnosis.
      """
      global _gc_diagnosis_users
      with _gc_diagnosis_lock:
          if _gc_diagnosis_users > 0:
              _gc_diagnosis_users -= 1
              if _gc_diagnosis_users == 0:
                  _gc_diagnosis.disable()
              elif force:
                  _gc_diagnosis.disable()
                  _gc_diagnosis_users = 0
              else:
                  assert _gc_diagnosis.enabled
  
imports: from __future__ import annotations
  import gc
  import logging
  import threading
  from collections import deque
  import psutil
  from dask.utils import format_bytes
  from distributed.metrics import thread_time
label_desc: Use image node_id 2 for calling a global function with example usage: disable_gc_diagnosis(force) without return types