code: def _pre_action(self) -> None:
      if pivot_margins := self.data.get("pivot_margins"):
          self.data["colTotals"] = pivot_margins
          self.data["colSubTotals"] = pivot_margins
  
      if pandas_aggfunc := self.data.get("pandas_aggfunc"):
          self.data["pandas_aggfunc"] = self.aggregation_mapping[
              pandas_aggfunc
          ]
  
      self.data["rowOrder"] = "value_z_to_a"
  
imports: from typing import Any
  from superset.utils.core import as_list
  from .base import MigrateViz
label_desc: Use image node_id 1 for calling the MigratePivotTable obj's underlying member method code with example usage: obj._pre_action() without return types