code: def test_empty_container_throws_warning_in_eager(self):
      def fn(x: Any):
          torch.jit.isinstance(x, List[int])
  
      with warnings.catch_warnings(record=True) as w:
          x: List[int] = []
          fn(x)
          self.assertEqual(len(w), 1)
  
      with warnings.catch_warnings(record=True) as w:
          x: int = 2
          fn(x)
          self.assertEqual(len(w), 0)
  
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 28 for calling the TestIsinstance obj's underlying member method code with example usage: obj.test_empty_container_throws_warning_in_eager() without return types