new_contents: # pylint: disable=missing-docstring, invalid-name, import-error
  import pandas as pd
  
  from mltils.encoders import InfrequentValueEncoder
  
  
  def test_infrequent_value_encoder_1():
      ive = InfrequentValueEncoder()
      assert ive is not None
  
  
  def test_infrequent_value_encoder_2():
      df = pd.DataFrame({'A': ['a', 'a', 'b', 'b', 'c']})
      ive = InfrequentValueEncoder(thrshld=1, str_rpl='ifq')
      encoded = ive.fit_transform(df)
      expected = pd.DataFrame({'A': ['a', 'a', 'b', 'b', 'ifq']})
      assert expected.equals(encoded)
  
subject: Add unit tests for InfrequentValueEncoder