code: def test_create_item_with_sub():
      client = get_app_client()
      client_no = get_app_client(separate_input_output_schemas=False)
      data = {
          "name": "Plumbus",
          "sub": {
              "subname": "SubPlumbus",
              "sub_description": "Sub WTF",
          },
      }
      response = client.post("/items/", json=data)
      response2 = client_no.post("/items/", json=data)
      assert (
          response.status_code == response2.status_code == 200
      ), response.text
      assert (
          response.json()
          == response2.json()
          == {
              "name": "Plumbus",
              "description": None,
              "sub": {
                  "subname": "SubPlumbus",
                  "sub_description": "Sub WTF",
                  "tags": [],
              },
          }
      )
  
file_path: fastapi/tests/test_openapi_separate_input_output_schemas.py
imports: from typing import List, Optional
  from fastapi import FastAPI
  from fastapi.testclient import TestClient
  from pydantic import BaseModel
  from .utils import PYDANTIC_V2, needs_pydanticv2
label_desc: Use image node_id 3 for calling a global function with example usage: test_create_item_with_sub() without return types