code: def test_fetch_adult():
      """Tests Adult Income dataset shapes with various options."""
      adult = fetch_adult()
      assert len(adult) == 3
      assert adult.X.shape == (45222, 13)
      assert len(adult.X.index.get_level_values("race").categories) == 2
      assert len(adult.X.race.cat.categories) > 2
      assert fetch_adult(dropna=False).X.shape == (48842, 13)
      # race is kept since it's binary
      assert fetch_adult(numeric_only=True).X.shape == (48842, 7)
      num_only_bin_race = fetch_adult(
          numeric_only=True, binary_race=False
      )
      # race gets dropped since it's categorical
      assert num_only_bin_race.X.shape == (48842, 6)
      # still in index though
      assert "race" in num_only_bin_race.X.index.names
  
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 10 for calling a global function with example usage: test_fetch_adult() without return types