code: def test_create_item_list():
      client = get_app_client()
      client_no = get_app_client(separate_input_output_schemas=False)
      data = [
          {"name": "Plumbus"},
          {
              "name": "Portal Gun",
              "description": "Device to travel through the multi-rick-verse",
          },
      ]
      response = client.post("/items-list/", json=data)
      response2 = client_no.post("/items-list/", json=data)
      assert (
          response.status_code == response2.status_code == 200
      ), response.text
      assert (
          response.json()
          == response2.json()
          == [
              {"name": "Plumbus", "description": None, "sub": None},
              {
                  "name": "Portal Gun",
                  "description": "Device to travel through the multi-rick-verse",
                  "sub": None,
              },
          ]
      )
  
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 4 for calling a global function with example usage: test_create_item_list() without return types