<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_all(cls, account=None, location=None, include_disabled=False):
 """Returns a list of all resources for a given account, location and resource type. Attributes: account (:obj:`Account`):
 Account owning the resources location (`str`):
 Location of the resources to return (region) include_disabled (`bool`):
 Include resources from disabled accounts (default: False) Returns: list of resource objects """

        qry = db.Resource.filter(
            Resource.resource_type_id == ResourceType.get(cls.resource_type).resource_type_id
        )

        if account:
            qry = qry.filter(Resource.account_id == account.account_id)

        if not include_disabled:
            qry = qry.join(Account, Resource.account_id == Account.account_id).filter(Account.enabled == 1)

        if location:
            qry = qry.filter(Resource.location == location)

        return {res.resource_id: cls(res) for res in qry.all()}