code: def client():
      from docs_src.body.tutorial001_py310 import app
  
      client = TestClient(app)
      return client
  
imports: from unittest.mock import patch
  import pytest
  from dirty_equals import IsDict
  from fastapi.testclient import TestClient
  from fastapi.utils import match_pydantic_error_url
  from ...utils import needs_py310
label_desc: Use image node_id 1 for calling a global function with example usage: client() and returns: client