<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def account(self):
 """Return an account record, based on the host in the url"""

        from ambry.util import parse_url_to_dict

        d = parse_url_to_dict(self.url)

        return self._bundle.library.account(d['netloc'])