code: def test_func(x):
      print("Running test_func")
      p = mp.current_process()
      y = x * x if p.runner is None else x
      print(y)
  
file_path: BigDL/python/nano/client-application/StableDiffusion/stable_diffusion/runner_process.py
imports: import multiprocessing
  from multiprocessing.pool import Pool
  from stable_diffusion.runner import StableDiffusionRunner
label_desc: Use image node_id 1 for calling a global function with example usage: test_func(x) without return types