code: def create_factories(fs_provider, task_problem_types, hook_manager=None, course_class=Course, task_class=Task):
      
      if hook_manager is None:
          hook_manager = HookManager()
  
      task_factory = TaskFactory(fs_provider, hook_manager, task_problem_types, task_class)
      return CourseFactory(fs_provider, task_factory, hook_manager, course_class), task_factory
docs: Shorthand for creating Factories
      :param fs_provider: A FileSystemProvider leading to the courses
      :param hook_manager: an Hook Manager instance. If None, a new Hook Manager is created
      :param course_class:
      :param task_class:
      :return: a tuple with two objects: the first being of type CourseFactory, the second of type TaskFactory