code: def _test_resample(self, pobj, psobj, rules, closed, label, func):
      for rule in rules:
          p_resample = pobj.resample(
              rule=rule, closed=closed, label=label
          )
          ps_resample = psobj.resample(
              rule=rule, closed=closed, label=label
          )
          self.assert_eq(
              getattr(p_resample, func)().sort_index(),
              getattr(ps_resample, func)().sort_index(),
              almost=True,
          )
  
imports: import unittest
  import datetime
  import numpy
  import pandas
  from pyspark import pandas
  from pyspark.testing.pandasutils import PandasOnSparkTestCase, TestUtils
label_desc: Use image node_id 13 for calling the ResampleFrameMixin obj's underlying member method code with example usage: obj._test_resample(pobj, psobj, rules, closed, label, func) without return types