def by_category_template_id(self,category_template_id: str) -> CategoryTemplateItemRequestBuilder:
        """
        Provides operations to manage the categories property of the microsoft.graph.security.labelsRoot entity.
        param category_template_id: The unique identifier of categoryTemplate
        Returns: CategoryTemplateItemRequestBuilder
        """
        if category_template_id is None:
            raise TypeError("category_template_id cannot be null.")
        from .item.category_template_item_request_builder import CategoryTemplateItemRequestBuilder

        url_tpl_params = get_path_parameters(self.path_parameters)
        url_tpl_params["categoryTemplate%2Did"] = category_template_id
        return CategoryTemplateItemRequestBuilder(self.request_adapter, url_tpl_params)

        Provides operations to manage the categories property of the microsoft.graph.security.labelsRoot entity.
        param category_template_id: The unique identifier of categoryTemplate
        Returns: CategoryTemplateItemRequestBuilder
        
msgraph/generated/security/labels/categories/categories_request_builder.py