code: def is_fraud(input_df: pd.DataFrame):
      input_df = input_df.astype(sample_input.dtypes)
      input_features = preprocessor.transform(input_df)
      results = fraud_model_runner.predict_proba.run(input_features)
      predictions = np.argmax(
          results, axis=1
      )  # 0 is not fraud, 1 is fraud
      return {
          "is_fraud": list(map(bool, predictions)),
          "is_fraud_prob": results[:, 1],
      }
  
imports: import numpy
  import pandas
  from sample import sample_input
  import bentoml
  from bentoml.io import JSON
  from bentoml.io import PandasDataFrame
label_desc: Use image node_id 1 for calling a global function with example usage: is_fraud(input_df) and returns: dict