code: def test_value_counts_categorical_not_ordered(self):
      values = Categorical([1, 2, 3, 1, 1, 3], ordered=False)
  
      exp_idx = CategoricalIndex(
          [1, 3, 2], categories=[1, 2, 3], ordered=False, name="xxx"
      )
      exp = Series([3, 2, 1], index=exp_idx, name="count")
  
      ser = Series(values, name="xxx")
      tm.assert_series_equal(ser.value_counts(), exp)
      # check CategoricalIndex outputs the same result
      idx = CategoricalIndex(values, name="xxx")
      tm.assert_series_equal(idx.value_counts(), exp)
  
      # normalize
      exp = Series(
          np.array([3.0, 2.0, 1]) / 6.0,
          index=exp_idx,
          name="proportion",
      )
      tm.assert_series_equal(ser.value_counts(normalize=True), exp)
      tm.assert_series_equal(idx.value_counts(normalize=True), exp)
  
file_path: pandas/pandas/tests/series/methods/test_value_counts.py
imports: import numpy
  import pytest
  import pandas
  from pandas import Categorical, CategoricalIndex, Index, Series
  import pandas._testing
label_desc: Use image node_id 5 for calling the TestSeriesValueCounts obj's underlying member method code with example usage: obj.test_value_counts_categorical_not_ordered() without return types