code: def setup(self, **_):
      if self.api_type in (IMAGE_CLF, OBJECT_DETECTION):
          self.app.post("/api/predict-image")(self.predict_image)
  
      elif self.api_type == TXT_CLF:
          self.app.post("/api/predict-text")(self.predict_text)
  
      elif self.api_type == QNA:
          self.app.post("/api/QnA")(self.predict_question_answer)
  
file_path: chitra/chitra/serve/api.py
imports: from typing import Callable, Dict, Optional
  import uvicorn
  from fastapi import FastAPI, File, UploadFile
  from chitra.__about__ import documentation_url
  from chitra.serve import schema
  from chitra.serve.base import ModelServer
  from chitra.serve.constants import IMAGE_CLF, OBJECT_DETECTION, QNA, TXT_CLF
label_desc: Use image node_id 2 for calling the API obj's underlying member method code with example usage: obj.setup() without return types