code: def _enable_profiling():
      """Start profiling and register callback to print stats when the program
      exits.
      """
      import cProfile
      import atexit
  
      global _profiler
      _profiler = cProfile.Profile()
      _profiler.enable()
      atexit.register(_profile_atexit)
  
imports: import io
  import os
  from os import path
  import inspect
  import json
  import sys
  import platform
  import getopt
  import traceback
  import tempfile
  import atexit
  from shutil import rmtree
  import numpy
  from .event import EmitterGroup, EventEmitter, Event
  from .logs import logger, set_log_level, use_log_level
label_desc: Use image node_id 9 for calling a global function with example usage: _enable_profiling() without return types