def METHOD_NAME(value):
  if isinstance(value, str):
    d = {}
    for k, v in json.loads(value).items():
      d[k] = (v,)
    return d
  elif isinstance(value, dict):
    return value
  return None