class_docstr: CodeController inherits from BaseController and manages business logic related to the
  code.
  
  Methods
  -------
  create(code_id=None)
      create a code object within the project
  list()
      list all code objects within the project
  delete(id)
      delete the specified code object from the project
docstr: Checks if there exists any unstaged changes for the code in the project.
  
  Returns
  -------
  bool
      False if it's already staged else error
  
  Raises
  ------
  CodeNotInitialized
      error if not initialized (must initialize first)
  UnstagedChanges
      error if not there exists unstaged changes in code
docstr_tok: ["Checks","if","there","exists","any","unstaged","changes","for","the","code","in","the","project",".","Returns","--","--","--","-","bool","False","if","it","'s","already","staged","else","error","Raises","--","--","--","CodeNotInitialized","error","if","not","initialized","(","must","initialize","first",")","UnstagedChanges","error","if","not","there","exists","unstaged","changes","in","code"]
code: def check_unstaged_changes(self):
      """Checks if there exists any unstaged changes for the code in the project.
  
      Returns
      -------
      bool
          False if it's already staged else error
  
      Raises
      ------
      CodeNotInitialized
          error if not initialized (must initialize first)
      UnstagedChanges
          error if not there exists unstaged changes in code
      """
      return self.code_driver.check_unstaged_changes()
  
file_path: datmo/datmo/core/controller/code/code.py
imports: from datmo.core.util.i18n import get
  from datmo.core.controller.base import BaseController
  from datmo.core.entity.code import Code
  from datmo.core.util.exceptions import PathDoesNotExist, EnvironmentInitFailed, ArgumentError, CodeDoesNotExist
label_desc: Use image node_id 7 for calling the CodeController obj's underlying member method code with example usage: obj.check_unstaged_changes() and returns: self