code: def next_random_record(self):
      if len(self._rand_ids) == 0:
          self._rand_ids = list(range(len(self._raw_data)))
          random.shuffle(self._rand_ids)
      return self._raw_data[self._rand_ids.pop()]
  
file_path: openrec/openrec/tf1/utils/dataset.py
imports: import numpy
  import random
label_desc: Use image node_id 2 for calling the Dataset obj's underlying member method code with example usage: obj.next_random_record() and returns: self