def by_training_id(self,training_id: str) -> TrainingItemRequestBuilder:
        """
        Provides operations to manage the trainings property of the microsoft.graph.attackSimulationRoot entity.
        param training_id: The unique identifier of training
        Returns: TrainingItemRequestBuilder
        """
        if training_id is None:
            raise TypeError("training_id cannot be null.")
        from .item.training_item_request_builder import TrainingItemRequestBuilder

        url_tpl_params = get_path_parameters(self.path_parameters)
        url_tpl_params["training%2Did"] = training_id
        return TrainingItemRequestBuilder(self.request_adapter, url_tpl_params)

        Provides operations to manage the trainings property of the microsoft.graph.attackSimulationRoot entity.
        param training_id: The unique identifier of training
        Returns: TrainingItemRequestBuilder
        
msgraph/generated/security/attack_simulation/trainings/trainings_request_builder.py