<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def validate_account_status(self, data):
 """Performs field validation for account_status. If any region is not deleted, account_status cannot be deleted """

        deleted_status = 'deleted'
        region_status = data.get('status')
        account_status = data.get('account_status')
        for region in region_status:
            if region['status'] != deleted_status and account_status == deleted_status:
                raise ValidationError('Account Status cannot be "deleted" if a region is not "deleted"')