code: def nextids(self):
      self.curr += self.batch
      if self.curr + self.batch > self.total:
          self.ids = torch.LongTensor(np.random.permutation(self.total))
          self.curr = 0
      return self.ids[self.curr : self.curr + self.batch]
  
file_path: slimmerf/train.py
imports: import os
  from tqdm.auto import tqdm
  from opt import config_parser
  import json, random
  from renderer import *
  from utils import *
  from torch.utils.tensorboard import SummaryWriter
  import datetime
  from dataLoader import dataset_dict
  import sys
  from time import time
  import logging
label_desc: Use image node_id 2 for calling the SimpleSampler obj's underlying member method code with example usage: obj.nextids() and returns: self