class_docstr: Checks all functions of the GitCodeDriver
class_docstr_tok: ["Checks","all","functions","of","the","GitCodeDriver"]
code: def test_is_initialized(self):
      # Test if there are .git folder already exist
      self.git_code_manager.init()
      assert self.git_code_manager.is_initialized == True
      # Test when we remove datmo refs
      shutil.rmtree(
          os.path.join(self.temp_dir, ".git", "refs", "datmo")
      )
      assert self.git_code_manager.is_initialized == False
      # Test when we remove .git folder
      self.git_code_manager.init()
      shutil.rmtree(os.path.join(self.temp_dir, ".git"))
      assert self.git_code_manager.is_initialized == False
  
imports: from __future__ import division
  from __future__ import unicode_literals
  import os
  import time
  import shutil
  import tempfile
  import platform
  from io import open
  from datmo.core.controller.code.driver.git import GitCodeDriver, GitHostDriver
  from datmo.core.util.exceptions import CommitFailed, CommitDoesNotExist, PathDoesNotExist, GitExecutionError, DatmoFolderInWorkTree, UnstagedChanges
label_desc: Use image node_id 7 for calling the TestGitCodeDriver obj's underlying member method code with example usage: obj.test_is_initialized() without return types