<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def make_safe_url(self, url):
 """Makes a URL safe by removing optional hostname and port. Example: | ``make_safe_url('https://hostname:80/path1/path2?q1=v1&q2=v2#fragment')`` | returns ``'/path1/path2?q1=v1&q2=v2#fragment'`` Override this method if you need to allow a list of safe hostnames. """


        # Split the URL into scheme, netloc, path, query and fragment
        parts = list(urlsplit(url))

        # Clear scheme and netloc and rebuild URL
        parts[0] = ''   # Empty scheme
        parts[1] = ''   # Empty netloc (hostname:port)
        safe_url = urlunsplit(parts)
        return safe_url