code: def check_int(**params):
      
      for p in params:
          if not isinstance(params[p], numbers.Integral):
              raise ValueError(
                  "Expected {} integer, got {}".format(p, params[p]))
docs: Check that parameters are integers as expected
  
      Raises
      ------
      ValueError : unacceptable choice of parameters