code: def get_random_labels_np(self, minibatch_size):  # => labels
      if self.label_size > 0:
          return self._np_labels[
              np.random.randint(
                  self._np_labels.shape[0], size=[minibatch_size]
              )
          ]
      return np.zeros([minibatch_size, 0], self.label_dtype)
  
file_path: insightface/reconstruction/ostec/external/stylegan2/training/dataset.py
imports: import os
  import glob
  import numpy
  import tensorflow
  import dnnlib
  import dnnlib.tflib
label_desc: Use image node_id 7 for calling the TFRecordDataset obj's underlying member method code with example usage: obj.get_random_labels_np(minibatch_size) and returns: np, self