code: def _run_axis_tests(self, dtype):
      data = np.array(
          [[0, 1, 0, 0], [1, 0, 0, 0], [0, 1, 0, 0], [1, 0, 0, 0]]
      ).astype(dtype)
  
      msg = "Unique with 1d array and axis=0 failed"
      result = np.array([0, 1])
      assert_array_equal(unique(data), result.astype(dtype), msg)
  
      msg = "Unique with 2d array and axis=0 failed"
      result = np.array([[0, 1, 0, 0], [1, 0, 0, 0]])
      assert_array_equal(
          unique(data, axis=0), result.astype(dtype), msg
      )
  
      msg = "Unique with 2d array and axis=1 failed"
      result = np.array([[0, 0, 1], [0, 1, 0], [0, 0, 1], [0, 1, 0]])
      assert_array_equal(
          unique(data, axis=1), result.astype(dtype), msg
      )
  
      msg = "Unique with 3d array and axis=2 failed"
      data3d = np.array([[[1, 1], [1, 0]], [[0, 1], [0, 0]]]).astype(
          dtype
      )
      result = np.take(data3d, [1, 0], axis=2)
      assert_array_equal(unique(data3d, axis=2), result, msg)
  
      uniq, idx, inv, cnt = unique(
          data,
          axis=0,
          return_index=True,
          return_inverse=True,
          return_counts=True,
      )
      msg = "Unique's return_index=True failed with axis=0"
      assert_array_equal(data[idx], uniq, msg)
      msg = "Unique's return_inverse=True failed with axis=0"
      assert_array_equal(np.take_along_axis(uniq, inv, axis=0), data)
      msg = "Unique's return_counts=True failed with axis=0"
      assert_array_equal(cnt, np.array([2, 2]), msg)
  
      uniq, idx, inv, cnt = unique(
          data,
          axis=1,
          return_index=True,
          return_inverse=True,
          return_counts=True,
      )
      msg = "Unique's return_index=True failed with axis=1"
      assert_array_equal(data[:, idx], uniq)
      msg = "Unique's return_inverse=True failed with axis=1"
      assert_array_equal(np.take_along_axis(uniq, inv, axis=1), data)
      msg = "Unique's return_counts=True failed with axis=1"
      assert_array_equal(cnt, np.array([2, 1, 1]), msg)
  
imports: import numpy
  from numpy import ediff1d, intersect1d, setxor1d, union1d, setdiff1d, unique, isin
  from numpy.exceptions import AxisError
  from numpy.testing import assert_array_equal, assert_equal, assert_raises, assert_raises_regex
  import pytest
label_desc: Use image node_id 10 for calling the TestUnique obj's underlying member method code with example usage: obj._run_axis_tests(dtype) without return types