code: def test_numeric_only_basic():
      """Tests numeric_only on a toy example."""
      num_only = basic(numeric_only=True)
      assert num_only.X.shape == (3, 2)
      assert "Z" in num_only.X.index.names
      num_only_X2 = basic(prot_attr="X2", numeric_only=True)
      num_only_X2_dropZ = basic(
          prot_attr="X2", dropcols=["Z"], numeric_only=True
      )
      assert num_only_X2.X.equals(num_only_X2_dropZ.X)
  
imports: from functools import partial
  import numpy
  from numpy.testing import assert_array_equal
  import pandas
  from pandas.api.types import is_numeric_dtype
  from pandas.testing import assert_frame_equal
  import pytest
  from sklearn.compose import make_column_transformer
  from sklearn.preprocessing import OneHotEncoder, minmax_scale
  from aif360.datasets import AdultDataset, GermanDataset, CompasDataset, LawSchoolGPADataset, MEPSDataset19, MEPSDataset20, MEPSDataset21
  from aif360.sklearn.datasets import standardize_dataset, NumericConversionWarning, fetch_adult, fetch_bank, fetch_german, fetch_compas, fetch_lawschool_gpa, fetch_meps
label_desc: Use image node_id 7 for calling a global function with example usage: test_numeric_only_basic() without return types