code: def testInvalidIndex(self):
      interpreter = interpreter_wrapper.Interpreter(
          model_path=resource_loader.get_path_to_datafile(
              "testdata/permute_float.tflite"
          )
      )
      interpreter.allocate_tensors()
      # Invalid tensor index passed.
      with self.assertRaisesRegex(
          ValueError, "Tensor with no shape found."
      ):
          interpreter._get_tensor_details(4, 0)
      with self.assertRaisesRegex(ValueError, "Invalid node index"):
          interpreter._get_op_details(4)
  
imports: import ctypes
  import io
  import sys
  from unittest import mock
  import numpy
  import tensorflow
  from tensorflow.lite.python import interpreter
  from tensorflow.lite.python.metrics import metrics
  from tensorflow.lite.python.testdata import _pywrap_test_registerer
  from tensorflow.python.framework import test_util
  from tensorflow.python.platform import resource_loader
  from tensorflow.python.platform import test
label_desc: Use image node_id 6 for calling the InterpreterTestErrorPropagation obj's underlying member method code with example usage: obj.testInvalidIndex() without return types