code: def client(
      monkeypatch_session: pytest.MonkeyPatch, app_config: AppConfig
  ) -> TestClient:
      return TestClient(create_app_with_config(app_config=app_config))
  
file_path: datasets-server/services/search/tests/test_app.py
imports: from typing import Optional
  import pytest
  from starlette.testclient import TestClient
  from search.app import create_app_with_config
  from search.config import AppConfig
label_desc: Use image node_id 1 for calling a global function with example usage: client(monkeypatch_session, app_config) and returns: TestClient