code: def test_sampling_strategy_callable_args():
      y = np.array([1] * 50 + [2] * 100 + [3] * 25)
      multiplier = {1: 1.5, 2: 1, 3: 3}
  
      def sampling_strategy_func(y, multiplier):
          """samples such that each class will be affected by the multiplier."""
          target_stats = Counter(y)
          return {
              key: int(values * multiplier[key])
              for key, values in target_stats.items()
          }
  
      sampling_strategy_ = check_sampling_strategy(
          sampling_strategy_func,
          y,
          "over-sampling",
          multiplier=multiplier,
      )
      assert sampling_strategy_ == {1: 25, 2: 0, 3: 50}
  
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 15 for calling a global function with example usage: test_sampling_strategy_callable_args() and returns: unknown