code: def test_binary_bin(self):
      data = np.array(["a", "ba", "ba"])
      out = encoders.BinaryEncoder().fit_transform(data)
      self.assertTrue(
          pd.DataFrame(
              [[0, 1], [1, 0], [1, 0]], columns=["0_0", "0_1"]
          ).equals(out)
      )
  
file_path: category_encoders/tests/test_binary.py
imports: import pandas
  from unittest import TestCase
  import numpy
  import category_encoders
label_desc: Use image node_id 1 for calling the TestBinaryEncoder obj's underlying member method code with example usage: obj.test_binary_bin() without return types