code: def test_in_if(self):
      def list_in_if(x: Any):
          if torch.jit.isinstance(x, List[int]):
              assert True
          if torch.jit.isinstance(x, List[str]):
              assert not True
  
      x = [1, 2, 3]
      self.checkScript(list_in_if, (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 18 for calling the TestIsinstance obj's underlying member method code with example usage: obj.test_in_if() without return types