code: def test_list_no_contained_type(self):
      def list_no_contained_type(x: Any):
          assert torch.jit.isinstance(x, List)
  
      x = ["1", "2", "3"]
  
      err_msg = (
          "Attempted to use List without a contained type. "
          r"Please add a contained type, e.g. List\[int\]"
      )
  
      with self.assertRaisesRegex(
          RuntimeError,
          err_msg,
      ):
          torch.jit.script(list_no_contained_type)
      with self.assertRaisesRegex(
          RuntimeError,
          err_msg,
      ):
          list_no_contained_type(x)
  
imports: import os
  import sys
  import torch
  import warnings
  from typing import List, Any, Dict, Tuple, Optional
  from torch.testing._internal.jit_utils import JitTestCase
label_desc: Use image node_id 22 for calling the TestIsinstance obj's underlying member method code with example usage: obj.test_list_no_contained_type() without return types