code: def read_hero(
      *, session: Session = Depends(get_session), hero_id: int
  ):
      hero = session.get(Hero, hero_id)
      if not hero:
          raise HTTPException(status_code=404, detail="Hero not found")
      return hero
  
imports: from typing import Optional
  from fastapi import Depends, FastAPI, HTTPException, Query
  from sqlmodel import Field, Session, SQLModel, create_engine, select
label_desc: Use image node_id 6 for calling a global function with example usage: read_hero() and returns: hero