def download_url_single(inputs, outdir, outfile=None):
if not inputs or type(inputs) != str or not outdir or type(outdir) != str:<EOL><INDENT>logging.error("<STR_LIT>")<EOL>return<EOL><DEDENT>else:<EOL><INDENT>if not os.path.exists(outdir):<EOL><INDENT>os.makedirs(outdir)<EOL><DEDENT><DEDENT>output_file = handle_single_url(inputs, outdir, outfile)<EOL>return output_file<EOL>
Downloads a http(s) url to a local file
:param str inputs:  the absolute url
:param str outdir: Required. the local directory to put the downloadedfiles.
:param str outfile: // Optional. If this is given, the downloaded url will be renated to outfile;
  If this is not given, then the local file will be the original one, as given in url.
:return: the local full path name of downloaded url