def METHOD_NAME(stub, model_name, model_input, metadata):
    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),
        metadata=metadata,
    )
    try:
        prediction = response.prediction.decode("utf-8")
        print(prediction)
    except grpc.RpcError as e:
        exit(1)