code: def teardown_class(self):
      chdir(self._cwd)
      if exists(self._temp_dir):
          rmtree(self._temp_dir)
  
imports: from os import getcwd, chdir
  from shutil import rmtree
  from os.path import exists
  from tempfile import mkdtemp
  import pytest
  import numpy
  import coremltools
  import os
  from coremltools._deps import _HAS_TF_1, _HAS_TF_2, _HAS_TORCH, MSG_TF1_NOT_FOUND, MSG_TF2_NOT_FOUND, MSG_TORCH_NOT_FOUND
label_desc: Use image node_id 2 for calling the TestTensorFlow2ConverterExamples obj's underlying member method code with example usage: obj.teardown_class() without return types