code: def test_adult_data(
      self, adult_data, adult_data_feature_balance_measures
  ):
      (
          train_df,
          test_df,
          categorical_cols,
          target_col,
          classes,
      ) = adult_data
      full_df = pd.concat([train_df, test_df])
      pos_label = "1"
  
      feat_measures = FeatureBalanceMeasures(
          cols_of_interest=categorical_cols,
          label_col=target_col,
          pos_label=pos_label,
      ).measures(dataset=full_df)
      actual = pd.concat(
          [
              feat_measures.query(
                  "(ClassA == 'White' and ClassB == 'Other')"
              ),
              feat_measures.query(
                  "(ClassA == 'Male' and ClassB == 'Female')"
              ),
          ]
      )
      pd.testing.assert_frame_equal(
          actual.reset_index(drop=True),
          adult_data_feature_balance_measures[pos_label].reset_index(
              drop=True
          ),
      )
  
file_path: responsible-ai-toolbox/responsibleai/tests/databalanceanalysis/test_feature_balance_measures.py
imports: import pandas
  import pytest
  from responsibleai.databalanceanalysis import FeatureBalanceMeasures
  from ..common_utils import assert_series_and_dict_equal
  from .conftest import SYNTHETIC_DATA_GENDER, SYNTHETIC_DATA_LABEL
label_desc: Use image node_id 2 for calling the TestFeatureBalanceMeasures obj's underlying member method code with example usage: obj.test_adult_data(adult_data, adult_data_feature_balance_measures) without return types