code: def test_right_pad_numericalize(self):
      minibatch = [
          dict_feat
          for dict_feat in zip(DICT_FEATS_STR, WEIGHTS, LENGTHS)
      ]
      (
          padded_feats,
          padded_weights,
          padded_lengths,
      ) = self.dict_field.pad(minibatch)
  
      self.assertEqual(padded_feats, PADDED_DICT_FEATS)
      self.assertEqual(padded_weights, PADDED_DICT_WEIGHTS)
      self.assertEqual(padded_lengths, PADDED_LENGTHS)
      feats, _, _ = self.dict_field.numericalize(
          (padded_feats, padded_weights, padded_lengths), device="cpu"
      )
      np.testing.assert_array_equal(feats.data.numpy(), NUMERICAL_FEATS)
  
      precision.FP16_ENABLED = True
      (
          padded_feats,
          padded_weights,
          padded_lengths,
      ) = self.dict_field.pad(minibatch)
      self.assertTrue(len(padded_feats[0]) % 8 == 0)
      self.assertTrue(len(padded_weights[0]) % 8 == 0)
      precision.FP16_ENABLED = False
  
file_path: pytext/pytext/fields/test/dict_field_test.py
imports: import unittest
  import numpy
  from pytext.common.constants import VocabMeta
  from pytext.fields.dict_field import DictFeatureField
  from pytext.utils import precision
label_desc: Use image node_id 2 for calling the DictFieldTest obj's underlying member method code with example usage: obj.test_right_pad_numericalize() without return types