code: def test_value_counts_str():
      r = util.value_counts(["a", "b", "a"])
      assert all(np.array([2, 1]) - r < 1e-4)
  
imports: from cleanlab.internal import util
  import numpy
  import pytest
  from cleanlab.internal.label_quality_utils import get_normalized_entropy
  from cleanlab.internal.multilabel_utils import int2onehot, onehot2int
  from cleanlab.internal.util import num_unique_classes, format_labels, get_missing_classes
  from cleanlab.internal.validation import assert_valid_class_labels
label_desc: Use image node_id 6 for calling a global function with example usage: test_value_counts_str() without return types