docstr: Test the 'handle_unkown' dict with all non-default options.
docstr_tok: ["Test","the","'handle_unkown","'","dict","with","all","non-default","options","."]
code: def test_count_handle_unknown_dict(self):
      """Test the 'handle_unkown' dict with all non-default options."""
      enc = encoders.CountEncoder(
          handle_missing="return_nan",
          handle_unknown={"none": -1, "na_categorical": "return_nan"},
      )
  
      enc.fit(X)
      out = enc.transform(X_t)
  
      self.assertIn("none", enc._handle_unknown)
      self.assertTrue(pd.Series([6, 5, 3, -1]).isin(out["none"]).all())
      self.assertTrue(out["none"].unique().shape == (4,))
      self.assertTrue(out["none"].isna().sum() == 0)
      self.assertTrue(
          pd.Series([3, 6, 7]).isin(out["na_categorical"]).all()
      )
      self.assertTrue(out["na_categorical"].unique().shape == (4,))
      self.assertTrue(out["na_categorical"].isna().sum() == 3)
  
file_path: category_encoders/tests/test_count.py
imports: import pandas
  from unittest import TestCase
  import numpy
  import category_encoders
label_desc: Use image node_id 5 for calling the TestCountEncoder obj's underlying member method code with example usage: obj.test_count_handle_unknown_dict() without return types