code: def get(self, next_flag=True):
      if next_flag:
          self.current += 1
          if self.current < self.len:
              return self.range[self.current], False
          else:
              self.current = 0
              return self.range[self.current], True
      else:
          return self.range[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 _ChoiceGen obj's underlying member method code with example usage: obj.get(next_flag) and returns: self,  False, self,  False, self,  True