code: def __infer(stub, model_name, model_input):
      with open(model_input, "rb") as f:
          data = f.read()
  
      input_data = {"data": data}
      response = stub.Predictions(
          inference_pb2.PredictionsRequest(
              model_name=model_name, input=input_data
          )
      )
  
      prediction = response.prediction.decode("utf-8")
  
      return prediction
  
file_path: serve/test/pytest/test_gRPC_inference_api.py
imports: import json
  import os
  import threading
  from ast import literal_eval
  import inference_pb2
  import management_pb2
  import test_gRPC_utils
  import test_utils
label_desc: Use image node_id 4 for calling a global function with example usage: __infer(stub, model_name, model_input) and returns: prediction