def validate_url(url):
scheme = url.split('<STR_LIT>')[<NUM_LIT:0>].lower()<EOL>if scheme not in url_schemes:<EOL><INDENT>return False<EOL><DEDENT>if not bool(url_regex.search(url)):<EOL><INDENT>return False<EOL><DEDENT>return True<EOL>
Auxiliary method to validate an urllib
:param url: An url to be validated
:type url: string
:returns: True if the url is valid
:rtype: bool