code: def testCreateOutputDir(self):
      # Verify we create a output dir when it doesn't exist.
      test_subdir = "temptest"
      full_testdir_path = os.path.join(self.testdata_dir, test_subdir)
  
      try:
          # Ensure we are starting with a nonexistent dir.
          if os.path.isdir(full_testdir_path):
              shutil.rmtree(full_testdir_path)
  
          atlasmaker_io.create_output_dir_if_not_exist(
              full_testdir_path
          )
  
          self.assertEqual(os.path.isdir(full_testdir_path), True)
      except:
          raise
      finally:
          shutil.rmtree(
              os.path.join(self.testdata_dir, test_subdir),
              ignore_errors=True,
          )
  
imports: import io
  import os
  import shutil
  import mock
  from absl.testing import absltest
  from PIL import Image
  from requests.exceptions import ConnectTimeout, ReadTimeout, InvalidURL
  import atlasmaker_io
label_desc: Use image node_id 2 for calling the AtlasmakerIOTests obj's underlying member method code with example usage: obj.testCreateOutputDir() without return types