def by_segment_id(self,segment_id: str) -> SegmentItemRequestBuilder:
        """
        Provides operations to manage the segments property of the microsoft.graph.callRecords.session entity.
        param segment_id: The unique identifier of segment
        Returns: SegmentItemRequestBuilder
        """
        if segment_id is None:
            raise TypeError("segment_id cannot be null.")
        from .item.segment_item_request_builder import SegmentItemRequestBuilder

        url_tpl_params = get_path_parameters(self.path_parameters)
        url_tpl_params["segment%2Did"] = segment_id
        return SegmentItemRequestBuilder(self.request_adapter, url_tpl_params)

        Provides operations to manage the segments property of the microsoft.graph.callRecords.session entity.
        param segment_id: The unique identifier of segment
        Returns: SegmentItemRequestBuilder
        
msgraph/generated/communications/call_records/item/sessions/item/segments/segments_request_builder.py