code: def test_sum_encoder_preserve_dimension_2(self):
      train = ["A", "B", "C"]
      test = ["B", "D", "E"]
  
      encoder = encoders.SumEncoder(
          handle_unknown="value", handle_missing="value"
      )
      encoder.fit(train)
      test_t = encoder.transform(test)
  
      expected = [b_encoding, [1, 0, 0], [1, 0, 0]]
      self.assertEqual(test_t.to_numpy().tolist(), expected)
  
file_path: category_encoders/tests/test_sum_coding.py
imports: import pandas
  from unittest import TestCase
  import numpy
  import category_encoders
label_desc: Use image node_id 2 for calling the TestSumEncoder obj's underlying member method code with example usage: obj.test_sum_encoder_preserve_dimension_2() without return types