code: def test_for_in_dict(self):
      def test_dicts(x):
          # type: (Dict[str, int]) -> int
          sum = 0
          for key in x:
              sum += x[key]
          return sum
  
      self.checkScript(test_dicts, ({"a": 1, "b": 2, "c": 3},))
  
      def test_dict_keys_values(x):
          # type: (Dict[str, int]) -> Tuple[str, int]
          key_str = ""
          sum = 0
          for key in x.keys():
              key_str += key
          for val in x.values():
              sum += val
          return key_str, sum
  
      self.checkScript(test_dicts, ({"a": 1, "b": 2, "c": 3},))
  
imports: import os
  import sys
  import torch
  from torch.testing._internal.jit_utils import JitTestCase, make_global
  from torch.testing._internal.common_utils import IS_WINDOWS
  from collections import namedtuple
  from typing import List, Tuple, Dict, NamedTuple
label_desc: Use image node_id 23 for calling the TestTyping obj's underlying member method code with example usage: obj.test_for_in_dict() and returns: sum, key_str,  sum