code: def test_load_config_file(monkeypatch):
      monkeypatch.setattr(os.path, "exists", lambda x: False)
      assert caliban_launcher._load_config_file() == {}
  
      cfg = {"foo": 7}
  
      class MockFile:
          def __enter__(self):
              pass
  
          def __exit__(self, a, b, c):
              pass
  
      monkeypatch.setattr(os.path, "exists", lambda x: True)
      monkeypatch.setattr(builtins, "open", lambda x: MockFile())
      monkeypatch.setattr(json, "load", lambda x: cfg)
      assert caliban_launcher._load_config_file() == cfg
  
file_path: caliban/tests/caliban/resources/test_caliban_launcher.py
imports: import argparse
  import builtins
  from google.auth import credentials
  import json
  import os
  import pytest
  import tempfile
  from typing import Any
  from caliban.resources import caliban_launcher
label_desc: Use image node_id 4 for calling a global function with example usage: test_load_config_file(monkeypatch) without return types