def _object_has_any(obj, **attrs):
    """Test if an object has any of `attrs` name/value pairs (by equality).

    >>> _object_has_any(Path('/a/b/c.txt'), name='c.txt', suffix='.txt')
    True
    >>> _object_has_any(Path('/a/b/c.txt'), name='c.txt', age=112)
    True
    """
    for name, value in attrs.items():
        if hasattr(obj, name) and getattr(obj, name) == value:
            return True
    return False