docstr: Test the defaults are working as expected on 'none' and 'categorical' 
  which are the most extreme edge cases for the count encoder.
docstr_tok: ["Test","the","defaults","are","working","as","expected","on","'none","'","and","'categorical","'","which","are","the","most","extreme","edge","cases","for","the","count","encoder","."]
code: def test_count_defaults(self):
      """Test the defaults are working as expected on 'none' and 'categorical'
      which are the most extreme edge cases for the count encoder."""
      enc = encoders.CountEncoder(verbose=1)
      enc.fit(X)
      out = enc.transform(X_t)
  
      self.assertTrue(
          pd.Series([5, 3, 6]).isin(out["none"].unique()).all()
      )
      self.assertTrue(out["none"].unique().shape == (3,))
      self.assertTrue(out["none"].isna().sum() == 0)
      self.assertTrue(
          pd.Series([6, 3]).isin(out["na_categorical"]).all()
      )
      self.assertTrue(out["na_categorical"].unique().shape == (4,))
      self.assertTrue(enc.mapping is not None)
  
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 1 for calling the TestCountEncoder obj's underlying member method code with example usage: obj.test_count_defaults() without return types