code: def test_decons(codes_list, shape):
      group_index = get_group_index(
          codes_list, shape, sort=True, xnull=True
      )
      codes_list2 = _decons_group_index(group_index, shape)
  
      for a, b in zip(codes_list, codes_list2):
          tm.assert_numpy_array_equal(a, b)
  
imports: from collections import defaultdict
  from datetime import datetime
  from itertools import product
  import numpy
  import pytest
  from pandas import NA, DataFrame, MultiIndex, Series, array, concat, merge
  import pandas._testing
  from pandas.core.algorithms import safe_sort
  import pandas.core.common
  from pandas.core.sorting import _decons_group_index, get_group_index, is_int64_overflow_possible, lexsort_indexer, nargsort
label_desc: Use image node_id 2 for calling a global function with example usage: test_decons(codes_list, shape) without return types