code: def tearDown():
      if hasattr("temp_dir"):
          for file_name in (EDGE_FILE, VERTEX_FILE):
              p = os.path.join(temp_dir, file_name)
              try:
                  if os.path.exists(p):
                      os.remove(p)
              except:
                  print(("Failed to remove %s" % p))
                  traceback.print_exc()
          os.rmdir(temp_dir)
  
imports: import os
  import tempfile
  import traceback
  import numpy
  import six.moves
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  from cellprofiler_core.constants.measurement import GROUP_NUMBER, GROUP_INDEX, COLTYPE_FLOAT, COLTYPE_INTEGER
  import cellprofiler.modules.measureobjectskeleton
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.setting
  import cellprofiler_core.workspace
  import tests.frontend.modules
label_desc: Use image node_id 1 for calling a global function with example usage: tearDown() without return types