code: def set_resources_id_env_var() -> Iterator[None]:
      try:
          os.environ["DET_RESOURCES_ID"] = "resourcesId"
          yield
      finally:
          del os.environ["DET_RESOURCES_ID"]
  
file_path: determined/harness/tests/launch/test_util.py
imports: import contextlib
  import io
  import os
  import sys
  from typing import Callable, Dict, Iterator, List, Optional
  import determined
  from tests.experiment import utils
label_desc: Use image node_id 3 for calling a global function with example usage: set_resources_id_env_var() without return types