code: def create_team(
      *, session: Session = Depends(get_session), team: TeamCreate
  ):
      db_team = Team.model_validate(team)
      session.add(db_team)
      session.commit()
      session.refresh(db_team)
      return db_team
  
imports: from typing import List, Optional
  from fastapi import Depends, FastAPI, HTTPException, Query
  from sqlmodel import Field, Relationship, Session, SQLModel, create_engine, select
label_desc: Use image node_id 9 for calling a global function with example usage: create_team() and returns: db_team