code: def test_sparsemax_against_numpy(dtype):
      """check sparsemax kernel against numpy."""
      random = np.random.RandomState(1)
  
      z = random.uniform(low=-3, high=3, size=(test_obs, 10))
  
      tf_sparsemax_out = sparsemax(z.astype(dtype))
      np_sparsemax = _np_sparsemax(z).astype(dtype)
  
      test_utils.assert_allclose_according_to_type(
          np_sparsemax, tf_sparsemax_out
      )
  
file_path: addons/tensorflow_addons/activations/tests/sparsemax_test.py
imports: import pytest
  import numpy
  import tensorflow
  from tensorflow_addons.activations import sparsemax
  from tensorflow_addons.utils import test_utils
label_desc: Use image node_id 4 for calling a global function with example usage: test_sparsemax_against_numpy(dtype) without return types