code: def test_categorical_methods_mixin_inverse_transform_no_unseen_categories():
      input_df = pd.DataFrame({"words": ["dog", "dig", "cat"]})
      output_df = pd.DataFrame({"words": [1, 0.66, 0]})
  
      # when no unseen categories
      enc = MockClass()
      pd.testing.assert_frame_equal(
          enc.inverse_transform(output_df), input_df
      )
  
file_path: feature_engine/tests/test_encoding/test_base_encoder.py
imports: import numpy
  import pandas
  import pytest
  from feature_engine.encoding.base_encoder import CategoricalInitMixin, CategoricalMethodsMixin
label_desc: Use image node_id 8 for calling a global function with example usage: test_categorical_methods_mixin_inverse_transform_no_unseen_categories() without return types