code: def check_is_an_array(var, allow_none=False):
      
      if not is_an_array(var, allow_none=allow_none):
          raise TypeError("var must be a NumPy array, however type(var) is {}"
                          .format(type(var)))
docs: Calls is_an_array and raises a type error if the check fails.