code: def __init__(self, conf):
      super(_IntGen, self).__init__(conf)
      self.min, self.max = conf["range"]
      if "interval" in conf:
          self.interval = conf["interval"]
      elif "n" in conf:
          self.interval = floor((self.max - self.min) / (conf["n"] - 1))
      else:
          logger.warning("Using default interval of 1")
          self.interval = 1
      self.len = floor((self.max - self.min) / self.interval) + 1
      self.current = self.min
  
imports: import abc
  import logging
  from ast import literal_eval
  from math import floor
  from six.moves import reduce, input
  from .AbstractProposer import AbstractProposer
  from ..utils import check_missing_key, get_from_options
label_desc: Use image node_id 1 to create a new _IntGen object from inherited base classes: _AbstractGen with example: obj = _IntGen(conf)