code: def decode_b64(b64_str, is_print=False):
      r"""Decode b64 string to json format
  
      Parameters
      ---------
      b64_str: str
          String value represents the compressed base64 string.
      is_print : bool
          Boolean value controls whether to print the decoded json string.
      """
      json_str = zlib.decompress(base64.b64decode(b64_str)).decode(
          "utf-8"
      )
      if is_print:
          print(json_str)
      return json_str
  
imports: import zlib
  import base64
label_desc: Use image node_id 2 for calling a global function with example usage: decode_b64(b64_str, is_print) and returns: json_str