code: def testGenerateBoundingBoxProposals(self):
      # Op only exists on GPU.
      with self.cached_session(use_gpu=True):
          with self.assertRaisesRegex(
              (ValueError, errors.InvalidArgumentError),
              "must be rank 4",
          ):
              scores = constant_op.constant(
                  value=[
                      [[[1.0, 1.0], [1.0, 1.0], [1.0, 1.0], [1.0, 1.0]]]
                  ]
              )
              self.evaluate(
                  image_ops.generate_bounding_box_proposals(
                      scores=scores,
                      bbox_deltas=[],
                      image_info=[],
                      anchors=[],
                      pre_nms_topn=1,
                  )
              )
  
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 ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import image_ops
  from tensorflow.python.ops import image_ops_impl
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 9 for calling the DrawBoundingBoxOpTest obj's underlying member method code with example usage: obj.testGenerateBoundingBoxProposals() without return types