Add doc string for _get_category_type method since its generic method.