code: def _resolve_resource_name(self, name):
          
          if name[:4] == 'http':  # already a url
              return name
          name = name.rstrip('/').lstrip('/')
          return '%s%s/%s' % (self.scheme, self.host, name)
docs: Convert a resource name (e.g. tracks) into a URI.