code: def init(doctest_namespace):
      # This gets run once per process -- must avoid race conditions
      print("setting up doctest...")
  
      olddir = os.getcwd()
      os.chdir(
          os.path.join(
              os.path.dirname(os.path.realpath(__file__)), "docs"
          )
      )
  
      hl.init(global_seed=0, master=f"local[{HAIL_QUERY_N_CORES}]")
      hl.reset_global_randomness()
  
      try:
          generate_datasets(doctest_namespace)
          print("finished setting up doctest...")
          yield
      finally:
          os.chdir(olddir)
  
file_path: hail/hail/python/hail/conftest.py
imports: import doctest
  import os
  import numpy
  import pytest
  import hail
label_desc: Use image node_id 2 for calling a global function with example usage: init(doctest_namespace) without return types