code: def close(self):
      if self.print_progress:
          print("%-40s\r" % "Flushing data...", end="", flush=True)
      for tfr_writer in self.tfr_writers:
          tfr_writer.close()
      self.tfr_writers = []
      if self.print_progress:
          print("%-40s\r" % "", end="", flush=True)
          print("Added %d images." % self.cur_images)
  
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 2 for calling the TFRecordExporter obj's underlying member method code with example usage: obj.close() without return types