code: def test_non_numeric_exclusion(self, interp_method, request):
      interpolation, method = interp_method
      df = DataFrame(
          {"col1": ["A", "A", "B", "B"], "col2": [1, 2, 3, 4]}
      )
      rs = df.quantile(
          0.5,
          numeric_only=True,
          interpolation=interpolation,
          method=method,
      )
      xp = df.median(numeric_only=True).rename(0.5)
      if interpolation == "nearest":
          xp = (xp + 0.5).astype(np.int64)
      tm.assert_series_equal(rs, xp)
  
imports: import numpy
  import pytest
  import pandas
  from pandas import DataFrame, Index, Series, Timestamp
  import pandas._testing
label_desc: Use image node_id 4 for calling the TestDataFrameQuantile obj's underlying member method code with example usage: obj.test_non_numeric_exclusion(interp_method, request) without return types