code: def testBadFilterShape(self):
      strides = [1, 1, 1, 1, 1]
      padding = "VALID"
      tin = constant_op.constant(
          0.5053710941, shape=[2, 2, 2, 2, 1], dtype=dtypes.float32
      )
      filter_sizes = constant_op.constant(
          0, shape=[], dtype=dtypes.int32
      )
      out_backprop = constant_op.constant(
          0.5053710941, shape=[2, 2, 2, 2, 1], dtype=dtypes.float32
      )
  
      with self.assertRaisesRegex(
          (ValueError, errors.InvalidArgumentError), "must be rank 1"
      ):
          nn_ops.conv3d_backprop_filter_v2(
              input=tin,
              filter_sizes=filter_sizes,
              out_backprop=out_backprop,
              strides=strides,
              padding=padding,
          )
  
file_path: tensorflow-upstream/tensorflow/python/kernel_tests/nn_ops/conv3d_backprop_filter_v2_grad_test.py
imports: import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gradient_checker
  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 2 for calling the Conv3DBackpropFilterV2GradTest obj's underlying member method code with example usage: obj.testBadFilterShape() without return types