code: def test_optional_floatlist_invalid(self):
      with self.assertRaisesRegex(
          TypeError, "must be tuple of floats, not list"
      ):
          FloatListWrapperModule()(torch.zeros(1), ["hi"])
  
      with self.assertRaisesRegex(
          RuntimeError, "value of type .* instead found type"
      ):
          torch.jit.script(FloatListWrapperModule())(
              torch.zeros(1), ["hi"]
          )
  
      with self.assertRaisesRegex(TypeError, "must be .* Tensor"):
          FloatListWrapperModule()(torch.zeros(1), torch.zeros(1))
  
      with self.assertRaisesRegex(
          RuntimeError, "value of type .* instead found type"
      ):
          torch.jit.script(FloatListWrapperModule())(
              torch.zeros(1), torch.zeros(1)
          )
  
imports: from typing import Optional, List
  import torch
  from torch.testing._internal.common_utils import TestCase, run_tests, skipIfTorchDynamo
label_desc: Use image node_id 11 for calling the TestNativeFunctions obj's underlying member method code with example usage: obj.test_optional_floatlist_invalid() without return types