code: def test_list_nested(self):
      def list_nested(x: Any):
          assert torch.jit.isinstance(x, List[Dict[str, int]])
          assert not torch.jit.isinstance(x, List[List[str]])
  
      x = [{"a": 1, "b": 2}, {"aa": 11, "bb": 22}]
      self.checkScript(list_nested, (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 12 for calling the TestIsinstance obj's underlying member method code with example usage: obj.test_list_nested() without return types