code: def pytest_sessionstart(session):
      # Force spawning the process so we don't accidently inherit locks.
      # I'm not a 100% certain this will work correctly unfortunately... there
      # is some potential for breaking tests
      multiprocessing.set_start_method("spawn")
  
imports: import logging
  import pytest
  import random
  import multiprocessing
label_desc: Use image node_id 2 for calling a global function with example usage: pytest_sessionstart(session) without return types