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: Create a Code object
  
  Parameters
  ----------
  commit_id : str, optional
      if commit_id is already present, will not make a new reference and commit
  
  Returns
  -------
  Code
      an object representing the code reference created
  
  Raises
  ------
  RequiredArgumentMissing
      if any arguments above are not provided.
docstr_tok: ["Create","a","Code","object","Parameters","--","--","--","--","--","commit_id",":","str",",","optional","if","commit_id","is","already","present",",","will","not","make","a","new","reference","and","commit","Returns","--","--","--","-","Code","an","object","representing","the","code","reference","created","Raises","--","--","--","RequiredArgumentMissing","if","any","arguments","above","are","not","provided","."]
code: def create(self, commit_id=None):
      """Create a Code object
  
      Parameters
      ----------
      commit_id : str, optional
          if commit_id is already present, will not make a new reference and commit
  
      Returns
      -------
      Code
          an object representing the code reference created
  
      Raises
      ------
      RequiredArgumentMissing
          if any arguments above are not provided.
      """
      # Validate Inputs
  
      create_dict = {
          "model_id": self.model.id,
      }
      # Required args for Code entity
      required_args = ["driver_type", "commit_id"]
      for required_arg in required_args:
          # Handle Id if provided or not
          if required_arg == "driver_type":
              create_dict[required_arg] = self.code_driver.type
          elif required_arg == "commit_id":
              create_dict[required_arg] = self.code_driver.create_ref(
                  commit_id=commit_id
              )
              # If code object with commit id exists, return it
              results = self.dal.code.query(
                  {
                      "commit_id": create_dict[required_arg],
                      "model_id": self.model.id,
                  }
              )
              if results:
                  return results[0]
          else:
              raise NotImplementedError()
  
      # Create code and return
      return self.dal.code.create(Code(create_dict))
  
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 3 for calling the CodeController obj's underlying member method code with example usage: obj.create(commit_id) and returns: self, results