code: def _subtotals(self):
          
          view = self._dimension_dict.get("references", {}).get("view", {})
          # ---view can be both None and {}, thus the edge case.---
          insertion_dicts = (
              [] if view is None else view.get("transform", {}).get("insertions", [])
          )
          return _Subtotals(insertion_dicts, self.valid_elements)
docs: _Subtotals sequence object for this dimension.
  
          The subtotals sequence provides access to any subtotal insertions
          defined on this dimension.