code: def check_is_a_sequence(var, allow_none=False):
      
      if not is_a_sequence(var, allow_none=allow_none):
          raise TypeError("var must be a list or tuple, however type(var) is {}"
                          .format(type(var)))
docs: Calls is_a_sequence and raises a type error if the check fails.