import six


def _is_sequence(seq):
  """Returns true if its input is a `tuple`, `list`, or `range`.

  Args:
    seq: an input sequence.

  Returns:
    True if the sequence is a `tuple`, `list`, or `range`.
  """
  return isinstance(seq, (tuple, list, six.moves.range))