code: def test_binary_feature_buckets(self):
      feature_values = np.array([0, 1, 0, 1, 0, 1, 0, 1, 0, 1])
      df = pd.DataFrame(
          {
              "Sex": feature_values,
          }
      )
      feature_info = FeatureInfo(
          feature="Sex", feature_name="gender", df=df
      )
      feature_info._get_grids(df)
      mapped_df = feature_info._map_values_to_buckets(df)
  
      assert np.array_equal(mapped_df["x"].values, feature_values)
      assert feature_info.display_columns == ["Sex_0", "Sex_1"]
      assert feature_info.percentile_columns == []
  
imports: import pandas
  import numpy
  import pytest
  from pdpbox.utils import FeatureInfo, _to_rgba, _check_col, _check_dataset, _make_list, _check_model, _check_classes, _check_memory_limit, _check_frac_to_plot, _calc_n_jobs, _get_string, _expand_params_for_interact, _calc_preds, _check_cluster_params, _check_plot_engine, _check_pdp_interact_plot_type
label_desc: Use image node_id 17 for calling the TestFeatureInfo obj's underlying member method code with example usage: obj.test_binary_feature_buckets() without return types