code: def list_regions(service):
      
      for region in service.regions():
          print '%(name)s: %(endpoint)s' % {
              'name': region.name,
              'endpoint': region.endpoint,
          }
docs: List regions for the service