code: def test_onehot_feature_buckets(self):
      df = pd.DataFrame(
          {
              "Embarked_C": [1, 0, 0, 0, 1, 0, 0, 0, 0, 0],
              "Embarked_S": [0, 1, 1, 1, 0, 0, 0, 1, 1, 1],
              "Embarked_Q": [0, 0, 0, 0, 0, 1, 1, 0, 0, 0],
          }
      )
      feature_values = np.array([0, 1, 1, 1, 0, 2, 2, 1, 1, 1])
      one_hot_columns = ["Embarked_C", "Embarked_S", "Embarked_Q"]
      feature_info = FeatureInfo(
          feature=one_hot_columns, feature_name="embarked", 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 == one_hot_columns
      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 18 for calling the TestFeatureInfo obj's underlying member method code with example usage: obj.test_onehot_feature_buckets() without return types