def assertAlmostEqualOnAllArrayTypes(self, f, input_to_f, result, *args, **kwargs):
        expected_result = f(input_to_f, *args, **kwargs)
        self.assertAlmostEqual(
            expected_result,
            result,
            msg="Not almost equal for lists: {} != {}".format(expected_result, result),
        )
        expected_result = f(np.array(input_to_f), *args, **kwargs)
        self.assertAlmostEqual(
            expected_result,
            result,
            msg="Not almost equal for numpy.arrays: {} != {}".format(
                expected_result, result
            ),
        )
        expected_result = f(pd.Series(input_to_f, dtype="float64"), *args, **kwargs)
        self.assertAlmostEqual(
            expected_result,
            result,
            msg="Not almost equal for pandas.Series: {} != {}".format(
                expected_result, result
            ),
        )