def METHOD_NAME(value):
    """Check whether an object is an Ansible task result.
    This function lets us distinguish between standard Ansible results
    that need processing and values that have been postprocessed in
    the playbook.
    """
    return isinstance(value, dict) and (
        SKIPPED in value or FAILED in value or RC in value or RESULTS in value
    )