def create_subaccount(self, account, **kwargs):
if isinstance(account, dict) and '<STR_LIT:name>' in account:<EOL><INDENT>kwargs['<STR_LIT>'] = account<EOL><DEDENT>else:<EOL><INDENT>raise RequiredFieldMissing("<STR_LIT>")<EOL><DEDENT>response = self._requester.request(<EOL>'<STR_LIT:POST>',<EOL>'<STR_LIT>'.format(self.id),<EOL>_kwargs=combine_kwargs(**kwargs)<EOL>)<EOL>return Account(self._requester, response.json())<EOL>
Add a new sub-account to a given account.

:calls: `POST /api/v1/accounts/:account_id/sub_accounts \
<https://canvas.instructure.com/doc/api/accounts.html#method.sub_accounts.create>`_

:param account: The name of the account
:type account: str

:rtype: :class:`canvasapi.account.Account`