code: def test_get_normalized_sqrt_label_weights(self):
      vocab_dict = {"foo": 0, "bar": 1}
      label_counts = {"foo": 4, "bar": 1}
      weights_tensor = label.get_normalized_sqrt_label_weights(
          vocab_dict, label_counts
      )
      np.testing.assert_array_almost_equal(
          np.array([0.5, 2]), weights_tensor[0].detach().numpy()
      )
  
file_path: pytext/pytext/utils/tests/label_test.py
imports: import unittest
  import numpy
  from pytext.utils import label
label_desc: Use image node_id 3 for calling the LabelUtilTest obj's underlying member method code with example usage: obj.test_get_normalized_sqrt_label_weights() without return types