docstr: Test dict encoding
docstr_tok: ["Test","dict","encoding"]
code: def test_inverse_transform_25(self):
      """
      Test dict encoding
      """
      data = pd.DataFrame(
          {
              "city": ["chicago", "paris-1", "paris-2"],
              "state": ["US", "FR-1", "FR-2"],
              "other": ["A", "B", np.nan],
          }
      )
  
      expected = pd.DataFrame(
          {
              "city": ["chicago", "paris-1", "paris-2"],
              "state": ["US", "FR", "FR"],
              "other": ["A", "B", np.nan],
          }
      )
      input_dict = dict()
      input_dict["col"] = "state"
      input_dict["mapping"] = pd.Series(
          data=["US", "FR-1", "FR-2"], index=["US", "FR", "FR"]
      )
      input_dict["data_type"] = "object"
      result = inverse_transform(data, input_dict)
      pd.testing.assert_frame_equal(result, expected)
  
imports: import unittest
  import pandas
  import numpy
  import category_encoders
  import catboost
  import lightgbm
  import xgboost
  from shapash.utils.transform import inverse_transform, apply_preprocessing, get_col_mapping_ce
  from sklearn.ensemble import GradientBoostingClassifier
label_desc: Use image node_id 25 for calling the TestInverseTransformCaterogyEncoder obj's underlying member method code with example usage: obj.test_inverse_transform_25() without return types