import json
import zlib
import base64


def convert_gz_json_type(value):
  """Provide an ArgumentParser type function to unmarshal a b64 gz JSON string.
  """
  return json.loads(zlib.decompress(base64.b64decode(value)))