def METHOD_NAME(realm: str):
    # Note: This takes advantage of local variable scope
    policies = self._policy_eval.has_policy(
        {
            "realm": realm,
            "scope": scope,
            "action": action,
            "user": self._user,
            "active": True,
        },
        strict_matches=False,
    )
    return len(policies) > 0