code: def validate(self):
          
          if (self.scheme is None or self.scheme != '') \
            and (self.host is None or self.host == ''):
              return False
          return True
docs: Validates the URL object. The URL object is invalid if it does not represent an absolute URL.
          Returns True or False based on this.