code: def test_scatter_add(self, xp, dtype):
      if cupy.cuda.runtime.is_hip and dtype == numpy.float16:
          pytest.skip("atomicAdd does not support float16 in HIP")
      a = xp.zeros(self.shape, dtype)
      xp.add.at(a, self.slices, self.value)
      return a
  
file_path: cupy/tests/cupy_tests/core_tests/test_ndarray_scatter.py
imports: import pytest
  import numpy
  import cupy
  from cupy import testing
label_desc: Use image node_id 1 for calling the TestScatterParametrized obj's underlying member method code with example usage: obj.test_scatter_add(xp, dtype) and returns: a