code: def predict(features: IrisFeatures):
      input_df = pd.DataFrame([features.dict()])
      results = iris_clf_runner.predict.run(input_df)
      return {"prediction": results.tolist()[0]}
  
file_path: BentoML/examples/custom_web_serving/fastapi_example/service.py
imports: import numpy
  import pandas
  from fastapi import FastAPI
  from pydantic import BaseModel
  import bentoml
  from bentoml.io import JSON
  from bentoml.io import NumpyNdarray
label_desc: Use image node_id 2 for calling a global function with example usage: predict(features) and returns: dict