code: def test_nontuple_container_rhs_throws_in_eager(self):
      def fn1(x: Any):
          assert torch.jit.isinstance(x, [int, List[str]])
  
      def fn2(x: Any):
          assert not torch.jit.isinstance(
              x, {List[str], Tuple[int, str]}
          )
  
      err_highlight = "must be a type or a tuple of types"
  
      with self.assertRaisesRegex(RuntimeError, err_highlight):
          fn1(2)
  
      with self.assertRaisesRegex(RuntimeError, err_highlight):
          fn2(2)
  
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 27 for calling the TestIsinstance obj's underlying member method code with example usage: obj.test_nontuple_container_rhs_throws_in_eager() without return types