text: import uvicorn
  from fastapi import FastAPI
  from pydantic import BaseModel
  
  
  class User(BaseModel):
      first_name: str
      last_name: str = None
      age: int
  
  
  app = FastAPI()
  
  
  @app.post("/user/", response_model=User)
  async def create_user(user: User):
      result = await some_library(user)
      return result
  
  if __name__ == "__main__":
      uvicorn.run(app, host="0.0.0.0", port=8000)
  