code: def create_course(self, courseid, init_content):
          
          if not id_checker(courseid):
              raise InvalidNameException("Course with invalid name: " + courseid)
  
          course_fs = self.get_course_fs(courseid)
          course_fs.ensure_exists()
  
          if course_fs.exists("course.yaml") or course_fs.exists("course.json"):
              raise CourseAlreadyExistsException("Course with id " + courseid + " already exists.")
          else:
              course_fs.put("course.yaml", get_json_or_yaml("course.yaml", init_content))
  
          get_course_logger(courseid).info("Course %s created in the factory.", courseid)
docs: :param courseid: the course id of the course
          :param init_content: initial descriptor content
          :raise InvalidNameException or CourseAlreadyExistsException
          Create a new course folder and set initial descriptor content, folder can already exist