code: def _test_set_intersection_duplicates_2d(self, dtype):
      a_values = [[1, 1, 3]]
      b_values = [[1]]
      expected_indices = [[0, 0]]
      expected_values = _values([1], dtype)
      expected_shape = [1, 1]
      expected_counts = [1]
  
      # Dense to dense.
      a = _constant(a_values, dtype=dtype)
      b = _constant(b_values, dtype=dtype)
      intersection = self._set_intersection(a, b)
      self._assert_set_operation(
          expected_indices,
          expected_values,
          expected_shape,
          intersection,
          dtype=dtype,
      )
      self.assertAllEqual(
          expected_counts, self._set_intersection_count(a, b)
      )
  
      # Dense to sparse.
      sp_b = _dense_to_sparse(b_values, dtype=dtype)
      intersection = self._set_intersection(a, sp_b)
      self._assert_set_operation(
          expected_indices,
          expected_values,
          expected_shape,
          intersection,
          dtype=dtype,
      )
      self.assertAllEqual(
          expected_counts, self._set_intersection_count(a, sp_b)
      )
  
      # Sparse to sparse.
      sp_a = _dense_to_sparse(a_values, dtype=dtype)
      intersection = self._set_intersection(sp_a, sp_b)
      self._assert_set_operation(
          expected_indices,
          expected_values,
          expected_shape,
          intersection,
          dtype=dtype,
      )
      self.assertAllEqual(
          expected_counts, self._set_intersection_count(sp_a, sp_b)
      )
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_set_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import sets
  from tensorflow.python.ops import sparse_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 15 for calling the SetOpsTest obj's underlying member method code with example usage: obj._test_set_intersection_duplicates_2d(dtype) without return types