code: def state() -> State:
      return State()
  
file_path: fastapi/tests/test_router_events.py
imports: from contextlib import asynccontextmanager
  from typing import AsyncGenerator, Dict
  import pytest
  from fastapi import APIRouter, FastAPI
  from fastapi.testclient import TestClient
  from pydantic import BaseModel
label_desc: Use image node_id 1 for calling a global function with example usage: state() and returns: State