code: def set_gc_state(state):
      """Set status of garbage collector"""
      if gc.isenabled() == state:
          return
      if state:
          gc.enable()
      else:
          gc.disable()
  
file_path: catboost/contrib/python/scipy/py2/scipy/_lib/_gcutils.py
imports: import weakref
  import gc
  import sys
  from contextlib import contextmanager
label_desc: Use image node_id 1 for calling a global function with example usage: set_gc_state(state) without return types