def account_studies(api, account) -> List[Box]:
    'List of  account studies.\n\n    :param api: api\n    :param account: account\n    :return: list of studies\n    '
    account_namespaces = [account.namespace_id]
    group_namespaces = [group.namespace_id for group in api.Group.list(account_id=account.uuid).only(Group.namespace_id).all()]
    account_namespaces.extend(group_namespaces)
    acc_studies = []
    for account_namespace in account_namespaces:
        studies = api.Study.list().filter_by(Filter(field_name='phi_namespace', condition=FilterCondition.equals, value=account_namespace)).all()
        acc_studies.extend(list(studies))
    return acc_studies
List of  account studies.

:param api: api
:param account: account
:return: list of studies
def account_studies(api, account) -> List[Box]:
    'List of  account studies.\n\n    :param api: api\n    :param account: account\n    :return: list of studies\n    '
    account_namespaces = [account.namespace_id]
    group_namespaces = [group.namespace_id for group in api.Group.list(account_id=account.uuid).only(Group.namespace_id).all()]
    account_namespaces.extend(group_namespaces)
    acc_studies = []
    for account_namespace in account_namespaces:
        studies = api.Study.list().filter_by(Filter(field_name='phi_namespace', condition=FilterCondition.equals, value=account_namespace)).all()
        acc_studies.extend(list(studies))
    return acc_studies