code: def main(_):
      host, port = FLAGS.server.split(":")
      channel = implementations.insecure_channel(host, int(port))
      stub = prediction_service_pb2.beta_create_PredictionService_stub(
          channel
      )
      # Send request
      image = tf.gfile.FastGFile(FLAGS.image, "rb").read()
      request = predict_pb2.PredictRequest()
      request.model_spec.name = "tensorflow-serving"
      request.model_spec.signature_name = (
          tf.saved_model.signature_constants.DEFAULT_SERVING_SIGNATURE_DEF_KEY
      )
      request.inputs["image"].CopyFrom(
          tf.contrib.util.make_tensor_proto(image)
      )
      # request.inputs['input'].CopyFrom()
  
      result = stub.Predict(request, 10.0)  # 10 secs timeout
      print(result)
  
imports: from __future__ import print_function
  from grpc.beta import implementations
  import tensorflow
  from tensorflow_serving.apis import predict_pb2
  from tensorflow_serving.apis import prediction_service_pb2
label_desc: Use image node_id 1 for calling a global function with example usage: main(_) without return types