code: def _check_not_importing_main():
      if getattr(process.current_process(), "_inheriting", False):
          raise RuntimeError(
              textwrap.dedent(
                  """\
              An attempt has been made to start a new process before the
              current process has finished its bootstrapping phase.
  
              This probably means that you are not using fork to start your
              child processes and you have forgotten to use the proper idiom
              in the main module:
  
                  if __name__ == '__main__':
                      freeze_support()
                      ...
  
              The "freeze_support()" line can be omitted if the program
              is not going to be frozen to produce an executable."""
              )
          )
  
file_path: catboost/contrib/python/joblib/joblib/externals/loky/backend/spawn.py
imports: import os
  import sys
  import runpy
  import textwrap
  import types
  from multiprocessing import process, util
label_desc: Use image node_id 2 for calling a global function with example usage: _check_not_importing_main() without return types