code: def testInsertingNonScalarFails(self):
      with self.cached_session() as sess:
          input_priority = array_ops.placeholder(dtypes.int64)
          input_other = array_ops.placeholder(dtypes.string)
          q = data_flow_ops.PriorityQueue(2000, (dtypes.string,), (()))
  
          with self.assertRaisesRegex(
              errors_impl.InvalidArgumentError,
              r"Shape mismatch in tuple component 0. Expected \[\], got \[2\]",
          ):
              sess.run(
                  [q.enqueue((input_priority, input_other))],
                  feed_dict={
                      input_priority: np.array([0, 2], dtype=np.int64),
                      input_other: np.random.rand(3, 5).astype(bytes),
                  },
              )
  
          with self.assertRaisesRegex(
              errors_impl.InvalidArgumentError,
              r"Shape mismatch in tuple component 0. Expected \[2\], got \[2,2\]",
          ):
              sess.run(
                  [q.enqueue_many((input_priority, input_other))],
                  feed_dict={
                      input_priority: np.array(
                          [[0, 2], [3, 4]], dtype=np.int64
                      ),
                      input_other: np.random.rand(2, 3).astype(bytes),
                  },
              )
  
imports: import copy
  import random
  import threading
  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 ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import data_flow_ops
  import tensorflow.python.ops.nn_grad
  from tensorflow.python.platform import test
label_desc: Use image node_id 10 for calling the PriorityQueueTest obj's underlying member method code with example usage: obj.testInsertingNonScalarFails() without return types