code: def validate_url(url):
      
  
      scheme = url.split('://')[0].lower()
      if scheme not in url_schemes:
          return False
      if not bool(url_regex.search(url)):
          return False
      return True
docs: 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