code: def test_category(self):
      np.random.seed(1234)
      ALPHABET = np.array(list(string.ascii_lowercase + " "))
      array = np.char.add(
          np.random.choice(ALPHABET, 1000),
          np.random.choice(ALPHABET, 1000),
      )
  
      int_coder = CategoryCode("c", 0)
      int_coder.compute_code(array)
  
      r = int_coder.encode("xy")
      assert np.array_equal(np.array(r), np.array([509]))
      decoded = int_coder.decode(r)
      assert decoded == "xy"
  
file_path: NeMo/tests/collections/nlp/test_num_encoding.py
imports: import string
  import numpy
  import pytest
  from nemo.collections.common.tokenizers.column_coder import CategoryCode, ColumnCodes, FloatCode, IntCode
label_desc: Use image node_id 3 for calling the TestColumnCoder obj's underlying member method code with example usage: obj.test_category() without return types