code: def _execute_map_function(
      cls, op: "DataFrameExpandingAgg", func, in_data
  ):
      min_periods = 1 if op.min_periods > 0 else 0
  
      expanding = in_data.expanding(
          min_periods=min_periods, center=op.center, axis=op.axis
      )
      if func == "var":
          result = expanding.var(ddof=0)
      else:
          result = expanding.agg(func)
  
      if op.output_agg:
          summary = result.iloc[len(result) - 1 : len(result)]
      else:
          summary = None
      return result, summary
  
imports: from collections import namedtuple
  from functools import partial
  import numpy
  import pandas
  from ....None import opcodes
  from ....serialization.serializables import BoolField
  from ..aggregation import BaseDataFrameExpandingAgg
label_desc: Use image node_id 4 for calling the DataFrameExpandingAgg obj's underlying member method code with example usage: obj._execute_map_function(cls, op, func, in_data) and returns: result,  summary