def _ReadJSONKeystore(ks_contents, passwd=None):
  ks = json.loads(ks_contents)

  if 'client_email' not in ks or 'private_key' not in ks:
    raise ValueError('JSON keystore doesn\'t contain required fields')

  client_email = ks['client_email']
  if passwd:
    key = load_privatekey(FILETYPE_PEM, ks['private_key'], passwd)
  else:
    key = load_privatekey(FILETYPE_PEM, ks['private_key'])

  return key, client_email
Activate takes only one caption and device, get only one element
dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/commands/signurl.py/_ReadJSONKeystore--crossover with--dataset/ETHPy150Open openlmi/openlmi-scripts/commands/networking/lmi/scripts/networking/cmd.py/Deactivate.transform_options