def GenerationFromUrlAndString(url, generation):
  if url.scheme == 's3' and generation:
    return _DecodeLongAsString(generation)
  return generation
Decodes a generation from a StorageURL and a generation string.
dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/translation_helper.py/GenerationFromUrlAndString