code: def __init__(self, unseen=None):
      self.encoder_dict_ = {"words": {"dog": 1, "dig": 0.66, "cat": 0}}
      self.n_features_in_ = 1
      self.feature_names_in_ = ["words"]
      self.variables_ = ["words"]
      self.unseen = unseen
      self._unseen = -1
  
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 1 to create a new MockClass object from inherited base classes: CategoricalMethodsMixin with example: obj = MockClass(unseen)