def by_task_id(self,task_id: str) -> TaskItemRequestBuilder:
        """
        Provides operations to manage the tasks property of the microsoft.graph.identityGovernance.workflowBase entity.
        param task_id: The unique identifier of task
        Returns: TaskItemRequestBuilder
        """
        if task_id is None:
            raise TypeError("task_id cannot be null.")
        from .item.task_item_request_builder import TaskItemRequestBuilder

        url_tpl_params = get_path_parameters(self.path_parameters)
        url_tpl_params["task%2Did"] = task_id
        return TaskItemRequestBuilder(self.request_adapter, url_tpl_params)

        Provides operations to manage the tasks property of the microsoft.graph.identityGovernance.workflowBase entity.
        param task_id: The unique identifier of task
        Returns: TaskItemRequestBuilder
        
msgraph/generated/identity_governance/lifecycle_workflows/workflows/item/versions/item/tasks/tasks_request_builder.py