code: def run(self):
      self.errors = io.StringIO()
      startEvent.wait()
      for i in range(FILES_PER_THREAD):
          try:
              f = tempfile.TemporaryFile("w+b")
              f.close()
          except:
              self.error_count += 1
              print_exc(file=self.errors)
          else:
              self.ok_count += 1
  
file_path: cpython/Lib/test/test_threadedtempfile.py
imports: import tempfile
  from test.support import threading_helper
  import unittest
  import io
  import threading
  from traceback import print_exc
label_desc: Use image node_id 1 for calling the TempFileGreedy obj's underlying member method code with example usage: obj.run() without return types