code: def test_series_groupby_value_counts_no_sort():
      # GH#50482
      df = DataFrame(
          {
              "gender": [
                  "male",
                  "male",
                  "female",
                  "male",
                  "female",
                  "male",
              ],
              "education": [
                  "low",
                  "medium",
                  "high",
                  "low",
                  "high",
                  "low",
              ],
              "country": ["US", "FR", "US", "FR", "FR", "FR"],
          }
      )
      gb = df.groupby(["country", "gender"], sort=False)["education"]
      result = gb.value_counts(sort=False)
      index = MultiIndex(
          levels=[
              ["US", "FR"],
              ["male", "female"],
              ["low", "medium", "high"],
          ],
          codes=[[0, 1, 0, 1, 1], [0, 0, 1, 0, 1], [0, 1, 2, 0, 2]],
          names=["country", "gender", "education"],
      )
      expected = Series([1, 1, 1, 2, 1], index=index, name="count")
      tm.assert_series_equal(result, expected)
  
imports: import numpy
  import pytest
  import pandas.util._test_decorators
  from pandas import Categorical, CategoricalIndex, DataFrame, Grouper, Index, MultiIndex, Series, date_range, to_datetime
  import pandas._testing
  from pandas.util.version import Version
label_desc: Use image node_id 8 for calling a global function with example usage: test_series_groupby_value_counts_no_sort() without return types