code: def cv2_to_base64(image):
      """cv2_to_base64
  
      Convert an numpy array to a base64 object.
  
      Args:
          image: Input array.
  
      Returns: Base64 output of the input.
      """
      return base64.b64encode(image).decode("utf8")
  
file_path: PaddleSeg/test_tipc/serving_python/pipeline_http_client.py
imports: import requests
  import json
  import cv2
  import base64
  import os
  import argparse
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: cv2_to_base64(image) and returns: base64