code: def test_to_pandas_for_retract_table(self):
      table = self.t_env.from_pandas(self.pdf, self.data_type)
      result_pdf = (
          table.group_by(table.f1)
          .select(table.f2.max.alias("f2"))
          .to_pandas()
      )
      import pandas as pd
      import numpy as np
  
      assert_frame_equal(
          result_pdf, pd.DataFrame(data={"f2": np.int16([2])})
      )
  
      result_pdf = (
          table.group_by(table.f2)
          .select(table.f1.max.alias("f2"))
          .to_pandas()
      )
      assert_frame_equal(
          result_pdf, pd.DataFrame(data={"f2": np.int8([1, 1])})
      )
  
imports: import datetime
  import decimal
  from pandas.testing import assert_frame_equal
  from pyflink.common import Row
  from pyflink.table.types import DataTypes
  from pyflink.testing import source_sink_utils
  from pyflink.testing.test_case_utils import PyFlinkBatchTableTestCase, PyFlinkStreamTableTestCase
label_desc: Use image node_id 4 for calling the PandasConversionITTests obj's underlying member method code with example usage: obj.test_to_pandas_for_retract_table() without return types