code: def test_data_frame_value_counts_normalize():
      df = pd.DataFrame(
          {"num_legs": [2, 4, 4, 6], "num_wings": [2, 0, 0, 0]},
          index=["falcon", "dog", "cat", "ant"],
      )
  
      result = df.value_counts(normalize=True)
      expected = pd.Series(
          data=[0.5, 0.25, 0.25],
          index=pd.MultiIndex.from_arrays(
              [(4, 2, 6), (0, 2, 0)], names=["num_legs", "num_wings"]
          ),
          name="proportion",
      )
  
      tm.assert_series_equal(result, expected)
  
file_path: pandas/pandas/tests/frame/methods/test_value_counts.py
imports: import numpy
  import pytest
  import pandas
  import pandas._testing
label_desc: Use image node_id 4 for calling a global function with example usage: test_data_frame_value_counts_normalize() without return types