code: def relative(self):
          
          if not self.is_absolute():
              raise ValueError("URL should be absolute")
          val = self._val._replace(scheme="", netloc="")
          return URL(val, encoded=True)
docs: Return a relative part of the URL.
  
          scheme, user, password, host and port are removed.