code: def base64_to_cv2(b64str):
      data = base64.b64decode(b64str.encode("utf8"))
      data = np.fromstring(data, np.uint8)
      data = cv2.imdecode(data, cv2.IMREAD_COLOR)
      return data
  
imports: from __future__ import absolute_import
  from __future__ import division
  import os
  import cv2
  import argparse
  import base64
  import paddlex
  from math import *
  import time, math, re
  import numpy
  import paddlehub
  from paddlehub.module.module import moduleinfo, runnable, serving
label_desc: Use image node_id 1 for calling a global function with example usage: base64_to_cv2(b64str) and returns: data