code: def add_labels(self, labels):
      if self.print_progress:
          print("%-40s\r" % "Saving labels...", end="", flush=True)
      assert labels.shape[0] == self.cur_images
      with open(self.tfr_prefix + "-rxx.labels", "wb") as f:
          np.save(f, labels.astype(np.float32))
  
imports: import os
  import sys
  import glob
  import argparse
  import threading
  import six.moves.queue
  import traceback
  import numpy
  import tensorflow
  import PIL.Image
  import dnnlib.tflib
  from training import dataset
label_desc: Use image node_id 5 for calling the TFRecordExporter obj's underlying member method code with example usage: obj.add_labels(labels) without return types