code: def test_sub_duplicates():
      response = client.post(
          "/with-duplicates-sub", json={"data": "myitem"}
      )
      assert response.status_code == 200, response.text
      assert response.json() == [
          {"data": "myitem"},
          [{"data": "myitem"}, {"data": "myitem"}],
      ]
  
file_path: fastapi/tests/test_dependency_duplicates.py
imports: from typing import List
  from dirty_equals import IsDict
  from fastapi import Depends, FastAPI
  from fastapi.testclient import TestClient
  from fastapi.utils import match_pydantic_error_url
  from pydantic import BaseModel
label_desc: Use image node_id 7 for calling a global function with example usage: test_sub_duplicates() without return types