class_docstr: A SegmentTree with the reduction `operation`=operator.add.
class_docstr_tok: ["A","SegmentTree","with","the","reduction","`","operation","`","=operator.add","."]
docstr: Returns the sum over a sub-segment of the tree.
docstr_tok: ["Returns","the","sum","over","a","sub-segment","of","the","tree","."]
code: def sum(self, start: int = 0, end: Optional[Any] = None) -> Any:
      """Returns the sum over a sub-segment of the tree."""
      return self.reduce(start, end)
  
file_path: ray/rllib/execution/segment_tree.py
imports: import operator
  from typing import Any, Optional
label_desc: Use image node_id 2 for calling the SumSegmentTree obj's underlying member method code with example usage: obj.sum(start, end) and returns: self