def METHOD_NAME(check_id: str, entity_configuration: dict[str, Any], runner_filter: RunnerFilter) -> bool:
    check_id_allowlist = runner_filter.checks
    check_id_denylist = runner_filter.skip_checks
    if check_id_allowlist:
        # Allow list provides namespace-only allows, check-only allows, or both
        # If namespaces not specified, all namespaces are scanned
        # If checks not specified, all checks are scanned
        run_check = False
        allowed_namespaces = [string for string in check_id_allowlist if "CKV_" not in string]
        if not any("CKV_" in check for check in check_id_allowlist):
            if "metadata" in entity_configuration and "namespace" in entity_configuration["metadata"]:
                if entity_configuration["metadata"]["namespace"] in allowed_namespaces:
                    run_check = True
            elif "parent_metadata" in entity_configuration and "namespace" in entity_configuration["parent_metadata"]:
                if entity_configuration["parent_metadata"]["namespace"] in allowed_namespaces:
                    run_check = True
            else:
                if "default" in allowed_namespaces:
                    run_check = True
        else:
            if check_id in check_id_allowlist or RunnerFilter.is_external_check(check_id):
                if allowed_namespaces:
                    # Check if namespace in allowed namespaces
                    if "metadata" in entity_configuration and "namespace" in entity_configuration["metadata"]:
                        if entity_configuration["metadata"]["namespace"] in allowed_namespaces:
                            run_check = True
                    elif "parent_metadata" in entity_configuration and "namespace" in entity_configuration["parent_metadata"]:
                        if entity_configuration["parent_metadata"]["namespace"] in allowed_namespaces:
                            run_check = True
                    else:
                        if "default" in allowed_namespaces:
                            run_check = True
                else:
                    # No namespaces to filter
                    run_check = True
        if run_check:
            return True
    elif check_id_denylist:
        namespace_skip = False
        if "metadata" in entity_configuration and "namespace" in entity_configuration["metadata"]:
            if entity_configuration["metadata"]["namespace"] in check_id_denylist:
                namespace_skip = True
        elif "parent_metadata" in entity_configuration and "namespace" in entity_configuration["parent_metadata"]:
            if entity_configuration["parent_metadata"]["namespace"] in check_id_denylist:
                namespace_skip = True
        else:
            if "default" in check_id_denylist:
                namespace_skip = True
        if check_id not in check_id_denylist and namespace_skip is False:
            return True
    else:
        return True
    return False