code: def _build_url(self, endpoint):
          
          try:
              path = self.endpoints[endpoint]
          except KeyError:
              msg = 'Unknown endpoint `{0}`'
              raise ValueError(msg.format(endpoint))
          absolute_url = urljoin(self.target, path)
          return absolute_url
docs: Builds the absolute URL using the target and desired endpoint.