code: def test_get_path(path, expected_status, expected_response):
      response = client.get(path)
      assert response.status_code == expected_status
      assert response.json() == expected_response
  
file_path: fastapi/tests/test_custom_route_class.py
imports: import pytest
  from fastapi import APIRouter, FastAPI
  from fastapi.routing import APIRoute
  from fastapi.testclient import TestClient
  from starlette.routing import Route
label_desc: Use image node_id 4 for calling a global function with example usage: test_get_path(path, expected_status, expected_response) without return types