@classmethod
  def JsonCorsToMessageEntries(cls, json_cors):
    try:
      deserialized_cors = json.loads(json_cors)
      cors = []
      for cors_entry in deserialized_cors:
        cors.append(encoding.DictToMessage(
            cors_entry, apitools_messages.Bucket.CorsValueListEntry))
      return cors
    except ValueError:
      CheckForXmlConfigurationAndRaise('CORS', json_cors)
Vectorized version of CTC cost
dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/translation_helper.py/CorsTranslation.JsonCorsToMessageEntries--crossover with--dataset/ETHPy150Open amaas/stanford-ctc/ctc/nnet.py/NNet.costAndGradVec