code: def get(self, next_flag=True):
      if next_flag:
          val = self.current + self.interval
          if val > self.max:  # loop back
              self.current = self.min
              return self.current, True
          else:
              self.current = val
              return self.current, False
      else:
          return self.current, False
  
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 2 for calling the _FloatGen obj's underlying member method code with example usage: obj.get(next_flag) and returns: self,  False, self,  True, self,  False