code: def test_invalid_method_doesnt_match():
      response = client.post("/users/rick")
      assert response.status_code == 405, response.text
  
file_path: fastapi/tests/test_route_scope.py
imports: import pytest
  from fastapi import FastAPI, Request, WebSocket, WebSocketDisconnect
  from fastapi.routing import APIRoute, APIWebSocketRoute
  from fastapi.testclient import TestClient
label_desc: Use image node_id 2 for calling a global function with example usage: test_invalid_method_doesnt_match() without return types