code: def test_sampling_strategy_check_order(
      sampling_strategy, sampling_type, expected_result
  ):
      # We pass on purpose a non sorted dictionary and check that the resulting
      # dictionary is sorted. Refer to issue #428.
      y = np.array([1] * 50 + [2] * 100 + [3] * 25)
      sampling_strategy_ = check_sampling_strategy(
          sampling_strategy, y, sampling_type
      )
      assert sampling_strategy_ == expected_result
  
imports: from collections import Counter, OrderedDict
  import numpy
  import pytest
  from sklearn.cluster import KMeans
  from sklearn.neighbors import NearestNeighbors
  from sklearn.neighbors._base import KNeighborsMixin
  from sklearn.utils._testing import assert_array_equal
  from imblearn.utils import check_neighbors_object, check_sampling_strategy, check_target_type
  from imblearn.utils._validation import ArraysTransformer, _deprecate_positional_args, _is_neighbors_object
  from imblearn.utils.testing import _CustomNearestNeighbors
label_desc: Use image node_id 16 for calling a global function with example usage: test_sampling_strategy_check_order(sampling_strategy, sampling_type, expected_result) without return types