code: def __init__(self, n):
      if abs(n - int(n)) >= 1e-15:
          raise ValueError("n must be an integer")
      self.n = int(n)
      self.masks = None
  
file_path: h2o-3/h2o-py/h2o/cross_validation.py
imports: from h2o.utils.compatibility import *
label_desc: Use image node_id 1 to create a new H2OPartitionIterator object from inherited base classes: object with example: obj = H2OPartitionIterator(n)