code: def _gen_url(url_path):
      
      from six.moves import urllib
      return urllib.parse.urljoin(dcos_url(), url_path)
docs: Return an absolute URL by combining DC/OS URL and url_path.
  
      :param url_path: path to append to DC/OS URL
      :type url_path: str
      :return: absolute URL
      :rtype: str