code: def test_init_encoder(self):
      df = create_test_df()
  
      actual = base.init_encoder(df)
      expected_keys = ["int_col", "str_col"]
      self.assertCountEqual(actual.keys(), expected_keys)
  
file_path: AIX360/tests/rule_induction/ripper/test_base.py
imports: from unittest import TestCase
  from sklearn.preprocessing import LabelEncoder
  import pandas
  from aix360.algorithms.rule_induction.ripper import base
label_desc: Use image node_id 1 for calling the TestBase obj's underlying member method code with example usage: obj.test_init_encoder() without return types