code: def enable_gc_diagnosis():
      """
      Ask to enable global GC diagnosis.
      """
      global _gc_diagnosis_users
      with _gc_diagnosis_lock:
          if _gc_diagnosis_users == 0:
              _gc_diagnosis.enable()
          else:
              assert _gc_diagnosis.enabled
          _gc_diagnosis_users += 1
  
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 1 for calling a global function with example usage: enable_gc_diagnosis() without return types