code: def to_dict(self):
          '''Return a dict of the attributes.'''
          return dict(
              raw=self.raw,
              scheme=self.scheme,
              authority=self.authority,
              netloc=self.authority,
              path=self.path,
              query=self.query,
              fragment=self.fragment,
              userinfo=self.userinfo,
              username=self.username,
              password=self.password,
              host=self.host,
              hostname=self.hostname,
              port=self.port,
              resource=self.resource,
              url=self.url,
              encoding=self.encoding,
          f to_dict(self):
          '''Return a dict of the attributes.'''
          return dict(
              raw=self.raw,
              scheme=self.scheme,
              authority=self.authority,
              netloc=self.authority,
              path=self.path,
              query=self.query,
              fragment=self.fragment,
              userinfo=self.userinfo,
              username=self.username,
              password=self.password,
              host=self.host,
              hostname=self.hostname,
              port=self.port,
              resource=self.resource,
              url=self.url,
              encoding=self.encoding,
          )
docs: Return a dict of the attributes.