def int_to_range(value, shift=0):
    """
    Converts ``value`` to ``range(shift, value + shift))`` if ``value`` is ``int``,
    returns ``value`` unchanged otherwise.
    """
    return list(range(shift, value + shift)) if isinstance(value, int) else value