code: def check_positive(**params):
      
      for p in params:
          if not isinstance(params[p], numbers.Number) or params[p] <= 0:
              raise ValueError(
                  "Expected {} > 0, got {}".format(p, params[p]))
docs: Check that parameters are positive as expected
  
      Raises
      ------
      ValueError : unacceptable choice of parameters