code: def testSetTensorShapeArrayInvalid(self):
      # Tests set_tensor_shape where the tensor name passed in doesn't exist.
      with ops.Graph().as_default():
          tensor = array_ops.placeholder(
              dtype=dtypes.float32, shape=[None, 3, 5]
          )
      self.assertAllEqual([None, 3, 5], tensor.shape)
  
      with self.assertRaises(ValueError) as error:
          util.set_tensor_shapes([tensor], {"invalid-input": [5, 3, 5]})
      self.assertEqual(
          "Invalid tensor 'invalid-input' found in tensor shapes map.",
          str(error.exception),
      )
      self.assertAllEqual([None, 3, 5], tensor.shape)
  
imports: import os
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow.lite.python import util
  from tensorflow.lite.tools.flatbuffer_utils import read_model
  from tensorflow.python.client import session
  from tensorflow.python.framework import convert_to_constants
  from tensorflow.python.framework import dtypes
  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 math_ops
  from tensorflow.python.ops import while_loop
  from tensorflow.python.platform import test
label_desc: Use image node_id 5 for calling the TensorFunctionsTest obj's underlying member method code with example usage: obj.testSetTensorShapeArrayInvalid() without return types