code: def hl_init_for_test(*args, **kwargs):
      backend_name = choose_backend()
      if backend_name == "spark":
          hl.init(
              master=f"local[{HAIL_QUERY_N_CORES}]",
              min_block_size=0,
              quiet=True,
              global_seed=0,
              *args,
              **kwargs,
          )
      else:
          hl.init(global_seed=0, *args, **kwargs)
  
imports: from typing import Callable, TypeVar
  from typing_extensions import ParamSpec
  import os
  from timeit import default_timer
  import unittest
  import pytest
  from hailtop.hail_decorator import decorator
  from hail.utils.java import choose_backend
  import hail
label_desc: Use image node_id 1 for calling a global function with example usage: hl_init_for_test() without return types