// GetCategoryByID returns a registered Category with the same ID from the registry or false if no such Category exists.
func (r *MutableTaskCategoryRegistry) GetCategoryByID(id int) (Category, bool) {
task_category_registry.go
category, ok := r.categories[id]
return category, ok
}
// GetCategories returns a deep copy of all registered Category objects from the registry.