def apply_updates(self, unit, updated_unit_dict, errors):
     """Applies changes to a unit; modifies unit input argument."""
     resources_display.UnitTools(courses.Course(self)).apply_updates(
         unit, updated_unit_dict, errors)
 def unit_to_dict(self, unit):
     """Converts a unit to a dictionary representation."""
     return resources_display.UnitTools(
         self.get_course()).unit_to_dict(unit)