code: def test_class_dependency(route, value):
      response = client.get(route, params={"value": value})
      assert response.status_code == 200, response.text
      assert response.json() == value
  
file_path: fastapi/tests/test_dependency_class.py
imports: from typing import AsyncGenerator, Generator
  import pytest
  from fastapi import Depends, FastAPI
  from fastapi.testclient import TestClient
label_desc: Use image node_id 1 for calling a global function with example usage: test_class_dependency(route, value) without return types