code: def test_base_dir_creation(self):
      if os.path.isdir(api.BASE_DIR):
          shutil.rmtree(api.BASE_DIR)
      api._create_base_dir()
      self.assertTrue(os.path.isdir(api.BASE_DIR))
      os.rmdir(api.BASE_DIR)
  
file_path: gensim/gensim/test/test_api.py
imports: import logging
  import unittest
  import os
  import gensim.downloader
  import shutil
  import numpy
label_desc: Use image node_id 1 for calling the TestApi obj's underlying member method code with example usage: obj.test_base_dir_creation() without return types