def _is_sequence(obj):
    """Check if the object is a sequence (list, tuple etc.).

    Parameters
    -----------
    object
        an object to be checked

    Returns
    --------
    bool
        True if the object is iterable but is not a string, False otherwise
    """
    return hasattr(obj, '__iter__') and not isinstance(obj, str)