code: def predictions_to_json(raw_predictions, output):
      predictions = _get_jsonable_obj(
          raw_predictions, pandas_orient="records"
      )
      json.dump(predictions, output, cls=NumpyEncoder)
  
imports: import json
  import sys
  from inspect import signature
  import click
  from mlflow.deployments import interface
  from mlflow.environment_variables import MLFLOW_DEPLOYMENTS_CONFIG
  from mlflow.utils import cli_args
  from mlflow.utils.annotations import experimental
  from mlflow.utils.proto_json_utils import NumpyEncoder, _get_jsonable_obj
label_desc: Use image node_id 10 for calling a global function with example usage: predictions_to_json(raw_predictions, output) without return types