docstr: Test that annotating container attributes with types works correctly
docstr_tok: ["Test","that","annotating","container","attributes","with","types","works","correctly"]
code: def test_type_annotation(self):
      """
      Test that annotating container attributes with types works correctly
      """
  
      @torch.jit.script
      class CompetitiveLinkingTokenReplacementUtils:
          def __init__(self):
              self.my_list: List[Tuple[float, int, int]] = []
              self.my_dict: Dict[int, int] = {}
  
      @torch.jit.script
      def foo():
          y = CompetitiveLinkingTokenReplacementUtils()
          new_dict: Dict[int, int] = {1: 1, 2: 2}
          y.my_dict = new_dict
  
          new_list: List[Tuple[float, int, int]] = [(1.0, 1, 1)]
          y.my_list = new_list
          return y
  
imports: import io
  import os
  import sys
  import unittest
  import torch
  import torch.nn
  from torch.testing import FileCheck
  from typing import Any
  from torch.testing._internal.jit_utils import JitTestCase, make_global
  import torch.testing._internal.jit_utils
  from torch.testing._internal.common_utils import IS_SANDCASTLE, skipIfTorchDynamo
  from typing import List, Tuple, Iterable, Optional, Dict
label_desc: Use image node_id 34 for calling the TestClassType obj's underlying member method code with example usage: obj.test_type_annotation() and returns: y