code: def test_axis_nan_policy_decorated_keyword_samples():
      # Test for correct behavior of function decorated with
      # _axis_nan_policy_decorator whether samples are provided as positional or
      # keyword arguments
  
      shape = (2, 8, 9, 10)
      rng = np.random.default_rng(0)
      x = rng.random(shape)
      x[0, 0, 0, 0] = np.nan
      res1 = stats.mannwhitneyu(*x)
      res2 = stats.mannwhitneyu(x=x[0], y=x[1])
      assert_equal(res1, res2)
  
      message = "mannwhitneyu() got multiple values for argument"
      with pytest.raises(TypeError, match=re.escape(message)):
          stats.mannwhitneyu(*x, x=x[0], y=x[1])
  
imports: from itertools import product, combinations_with_replacement, permutations
  import re
  import pickle
  import pytest
  import numpy
  from numpy.testing import assert_allclose, assert_equal, suppress_warnings
  from scipy import stats
  from scipy.stats import norm
  from scipy.stats._axis_nan_policy import _masked_arrays_2_sentinel_arrays
  from scipy._lib._util import AxisError
label_desc: Use image node_id 14 for calling a global function with example usage: test_axis_nan_policy_decorated_keyword_samples() without return types