code: def test_load_service_config(cwd):
      old_cwd = os.getcwd()
      try:
          os.chdir(cwd)
          cfg = load_service_config_file(
              os.path.join(
                  os.path.dirname(__file__), "inherit_test_cfg2.yml"
              )
          )
  
          assert "services" in cfg
          assert cfg["test_list"] == ["item1", "item2", "item3"]
          assert cfg["test_list2"] == ["item3"]
          assert set(cfg["test_dict"].keys()) == {
              "key1",
              "key2",
              "key3",
          }
          assert set(cfg["test_dict"]["key2"].values()) == {
              "val2_modified"
          }
          assert all(not k.startswith("@") for k in cfg.keys())
      finally:
          os.chdir(old_cwd)
  
imports: import os
  import pytest
  from ...services import NodeRole
  from ..utils import load_service_config_file, get_third_party_modules_from_config, next_in_thread
label_desc: Use image node_id 1 for calling a global function with example usage: test_load_service_config(cwd) without return types