<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 async def list_mailboxes(self, ref_name: str, filter_: str, subscribed: bool = False, selected: SelectedMailbox = None) \ -> Tuple[Iterable[Tuple[str, Optional[str], Sequence[bytes]]], Optional[SelectedMailbox]]: """List the mailboxes owned by the user. See Also: `RFC 3501 6.3.8. <https://tools.ietf.org/html/rfc3501#section-6.3.8>`_, `RFC 3501 6.3.9. <https://tools.ietf.org/html/rfc3501#section-6.3.9>`_ Args: ref_name: Mailbox reference name. filter_: Mailbox name with possible wildcards. subscribed: If True, only list the subscribed mailboxes. selected: If applicable, the currently selected mailbox name. """

        ...