def by_attachment_session_id(self,attachment_session_id: str) -> AttachmentSessionItemRequestBuilder:
        """
        Provides operations to manage the attachmentSessions property of the microsoft.graph.todoTask entity.
        param attachment_session_id: The unique identifier of attachmentSession
        Returns: AttachmentSessionItemRequestBuilder
        """
        if attachment_session_id is None:
            raise TypeError("attachment_session_id cannot be null.")
        from .item.attachment_session_item_request_builder import AttachmentSessionItemRequestBuilder

        url_tpl_params = get_path_parameters(self.path_parameters)
        url_tpl_params["attachmentSession%2Did"] = attachment_session_id
        return AttachmentSessionItemRequestBuilder(self.request_adapter, url_tpl_params)

        Provides operations to manage the attachmentSessions property of the microsoft.graph.todoTask entity.
        param attachment_session_id: The unique identifier of attachmentSession
        Returns: AttachmentSessionItemRequestBuilder
        
msgraph/generated/users/item/todo/lists/item/tasks/item/attachment_sessions/attachment_sessions_request_builder.py