code: def process_child(n: int, main_q: mp.Queue, proc_q: mp.Queue):
      print(f"init:{n}")
      run = wandb.init(config=dict(id=n))
  
      # let main know we have called init
      main_q.put(n)
      proc_q.get()
  
      run.log({"data": n})
  
      # let main know we have called log
      main_q.put(n)
      proc_q.get()
  
      if n == 2:
          # Triggers a FileNotFoundError from the internal process
          # because the internal process reads/writes to the current run directory.
          shutil.rmtree(run.dir)
  
      # let main know we have crashed a run
      main_q.put(n)
      proc_q.get()
  
      run.finish()
      print(f"finish:{n}")
  
imports: import multiprocessing
  import shutil
  from typing import List
  import wandb
label_desc: Use image node_id 1 for calling a global function with example usage: process_child(n, main_q, proc_q) without return types