code: def set_start_method(method, force=False):
      global _DEFAULT_START_METHOD
      if _DEFAULT_START_METHOD is not None and not force:
          raise RuntimeError("context has already been set")
      assert method is None or method in START_METHODS, (
          f"'{method}' is not a valid start_method. It should be in "
          f"{START_METHODS}"
      )
  
      _DEFAULT_START_METHOD = method
  
imports: import os
  import sys
  import math
  import subprocess
  import traceback
  import warnings
  import multiprocessing
  from multiprocessing import get_context
  from multiprocessing.context import BaseContext
  from .process import LokyProcess, LokyInitMainProcess
label_desc: Use image node_id 2 for calling a global function with example usage: set_start_method(method, force) without return types