def tuple2range(value):
    """
    Return the string for a given value. If the value is a tuple
    make it a range.
    """
    if isinstance(value, (list, tuple)):
        return '{}-{}'.format(value[0], value[1])
    return str(value)
