docstr: Verifies the output values of the erosion function.
  
  Args:
    image: Input tensor with shape: [batch, in_height, in_width, channels].
    kernel: Filter tensor with shape: [filter_height, filter_width, channels].
    strides: Output strides, specified as [stride_height, stride_width].
    rates: Atrous rates, specified as [rate_height, rate_width].
    padding: Padding type.
    out: Expected output.
    use_gpu: Whether we are running on GPU.
docstr_tok: ["Verifies","the","output","values","of","the","erosion","function",".","Args",":","image",":","Input","tensor","with","shape",":","[","batch",",","in_height",",","in_width",",","channels","]",".","kernel",":","Filter","tensor","with","shape",":","[","filter_height",",","filter_width",",","channels","]",".","strides",":","Output","strides",",","specified","as","[","stride_height",",","stride_width","]",".","rates",":","Atrous","rates",",","specified","as","[","rate_height",",","rate_width","]",".","padding",":","Padding","type",".","out",":","Expected","output",".","use_gpu",":","Whether","we","are","running","on","GPU","."]
code: def _VerifyValues(
      self, image, kernel, strides, rates, padding, out, use_gpu
  ):
      """Verifies the output values of the erosion function.
  
      Args:
        image: Input tensor with shape: [batch, in_height, in_width, channels].
        kernel: Filter tensor with shape: [filter_height, filter_width, channels].
        strides: Output strides, specified as [stride_height, stride_width].
        rates: Atrous rates, specified as [rate_height, rate_width].
        padding: Padding type.
        out: Expected output.
        use_gpu: Whether we are running on GPU.
      """
      strides = [1] + strides + [1]
      rates = [1] + rates + [1]
  
      with self.cached_session(use_gpu=use_gpu):
          out_tensor = nn_ops.erosion2d(
              constant_op.constant(image),
              constant_op.constant(kernel),
              strides=strides,
              rates=rates,
              padding=padding,
              name="erosion2d",
          )
          self.assertAllClose(out, self.evaluate(out_tensor))
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.framework import config
  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 test_util
  from tensorflow.python.ops import gradient_checker_v2
  from tensorflow.python.ops import nn_ops
  import tensorflow.python.ops.nn_grad
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the ErosionTest obj's underlying member method code with example usage: obj._VerifyValues(image, kernel, strides, rates, padding, out, use_gpu) without return types