code: def test_numeric_only_unsupported(self):
      pdf = pd.DataFrame(
          {
              "i": [0, 1, 2],
              "b": [False, False, True],
              "s": ["x", "y", "z"],
          }
      )
      psdf = ps.from_pandas(pdf)
  
      self.assert_eq(
          psdf.sum(numeric_only=True), pdf.sum(numeric_only=True)
      )
      self.assert_eq(
          psdf[["i", "b"]].sum(numeric_only=False),
          pdf[["i", "b"]].sum(numeric_only=False),
      )
  
      with self.assertRaisesRegex(
          TypeError, "Could not convert object \\(string\\) to numeric"
      ):
          psdf.sum(numeric_only=False)
  
      with self.assertRaisesRegex(
          TypeError, "Could not convert object \\(string\\) to numeric"
      ):
          psdf.s.sum()
  
imports: import numpy
  import pandas
  from pyspark import pandas
  from pyspark.testing.pandasutils import PandasOnSparkTestCase, SPARK_CONF_ARROW_ENABLED
  from pyspark.testing.sqlutils import SQLTestUtils
label_desc: Use image node_id 12 for calling the StatsTestsMixin obj's underlying member method code with example usage: obj.test_numeric_only_unsupported() without return types