class_docstr: Test the OHE vector encoder 
docstr: Test binary example case.
docstr_tok: ["Test","binary","example","case","."]
code: def test_encode_decode_with_binary(self):
      """
      Test binary example case.
      """
      # Generate categories with None
      data = ["apple", "apple", "orange", None, "apple", "orange"]
  
      # Generate test category with unseen examples (banana, None)
      test_data = ["apple", "banana", "orange", None, "apple"]
  
      # Ground-truth answer
      ytest = [
          "apple",
          _UNCOMMON_WORD,
          "orange",
          _UNCOMMON_WORD,
          "apple",
      ]
  
      enc = BinaryEncoder()
      enc.prepare(data)
  
      enc_data = enc.encode(data)
      dec_data = enc.decode(enc.encode(test_data))
  
      self.assertTrue(
          (
              enc_data
              == Tensor(
                  [
                      [
                          1.0,
                          0.0,
                      ],  # category 1
                      [
                          1.0,
                          0.0,
                      ],  # category 1
                      [
                          0.0,
                          1.0,
                      ],  # category 2
                      [
                          0.0,
                          0.0,
                      ],  # None
                      [
                          1.0,
                          0.0,
                      ],  # category 1
                      [
                          0.0,
                          1.0,
                      ],  # category 2
                  ]
              )
          ).all()
      )
  
      for i in range(len(ytest)):
          self.assertTrue(dec_data[i] == ytest[i])
  
file_path: lightwood/tests/unit_tests/encoder/categorical/test_binary.py
imports: import unittest
  import torch
  from torch import Tensor
  import numpy
  from lightwood.encoder.categorical.binary import BinaryEncoder
  from lightwood.helpers.constants import _UNCOMMON_WORD
label_desc: Use image node_id 1 for calling the TestBinary obj's underlying member method code with example usage: obj.test_encode_decode_with_binary() without return types