code: def ConfigsWithDilationsToTest():
      """Iterator for different convolution shapes, strides and paddings.
  
      Yields:
        Tuple (input_size, filter_size, out_size, stride, dilation, padding), the
        depthwise
        convolution parameters.
      """
      input_sizes = [
          [4, 6, 6, 48],
          [4, 8, 8, 84],
          [4, 36, 36, 2],
          [4, 148, 148, 2],
          [3, 300, 300, 3],
      ]
      filter_sizes = [
          [1, 1, 48, 2],
          [1, 3, 84, 1],
          [5, 5, 2, 1],
          [4, 4, 2, 8],
          [2, 2, 3, 8],
      ]
      out_sizes = [
          [4, 6, 6, 96],
          [4, 8, 8, 84],
          [4, 36, 36, 2],
          [4, 74, 74, 16],
          [3, 296, 296, 24],
      ]
      strides = [1, 1, 2, 2, 1]
      dilations = [2, 2, 4, 2, 4]
      # pylint: disable=invalid-name
      VALID = "VALID"
      SAME = "SAME"
      # pylint: enable=invalid-name
      paddings = [SAME, SAME, SAME, SAME, VALID]
      for i, f, o, s, d, p in zip(
          input_sizes,
          filter_sizes,
          out_sizes,
          strides,
          dilations,
          paddings,
      ):
          yield i, f, o, s, d, p
  
imports: import numpy
  from tensorflow.compiler.tests import xla_test
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import nn_impl
  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 3 for calling a global function with example usage: ConfigsWithDilationsToTest() without return types