code: def _NormalizeDiscoveryUrls(discovery_url):
      
      if discovery_url.startswith('http'):
          return [discovery_url]
      elif '.' not in discovery_url:
          raise ValueError('Unrecognized value "%s" for discovery url')
      api_name, _, api_version = discovery_url.partition('.')
      return [
          'https://www.googleapis.com/discovery/v1/apis/%s/%s/rest' % (
              api_name, api_version),
          'https://%s.googleapis.com/$discovery/rest?version=%s' % (
              api_name, api_version),
      ]
docs: Expands a few abbreviations into full discovery urls.