code: def test_axis_numeric_only_true(self, interp_method):
      # We may want to break API in the future to change this
      # so that we exclude non-numeric along the same axis
      # See GH #7312
      interpolation, method = interp_method
      df = DataFrame([[1, 2, 3], ["a", "b", 4]])
      result = df.quantile(
          0.5,
          axis=1,
          numeric_only=True,
          interpolation=interpolation,
          method=method,
      )
      expected = Series([3.0, 4.0], index=[0, 1], name=0.5)
      if interpolation == "nearest":
          expected = expected.astype(np.int64)
      tm.assert_series_equal(result, expected)
  
imports: import numpy
  import pytest
  import pandas
  from pandas import DataFrame, Index, Series, Timestamp
  import pandas._testing
label_desc: Use image node_id 6 for calling the TestDataFrameQuantile obj's underlying member method code with example usage: obj.test_axis_numeric_only_true(interp_method) without return types