class_docstr: Enumerate the search space in a grid search order
class_docstr_tok: ["Enumerate","the","search","space","in","a","grid","search","order"]
code: def next_batch(self, batch_size):
      ret = []
      while len(ret) < batch_size and self.has_next():
          self.visited.append(self.index)
          ret.append(self.space.get(self.index))
          self.index = self.space.get_next_index(
              self.index, start=self.begin_idx, end=self.end_idx
          )
      return ret
  
file_path: tvm/python/tvm/autotvm/tuner/index_based_tuner.py
imports: from .tuner import Tuner
label_desc: Use image node_id 2 for calling the GridSearchTuner obj's underlying member method code with example usage: obj.next_batch(batch_size) and returns: ret