code: def test_moduledict_getitem(self):
      class MyModule(torch.nn.Module):
          def __init__(self):
              super().__init__()
              self.relu = torch.jit.script(torch.nn.ReLU())
              self.tanh = torch.jit.script(torch.nn.Tanh())
              self.moduledict = torch.nn.ModuleDict(
                  {"relu": self.relu, "tanh": self.tanh}
              )
  
          def forward(self, input):
              assert self.moduledict["relu"] is self.relu
              assert self.moduledict["tanh"] is self.tanh
              return input
  
      m = MyModule()
      self.checkModule(m, [torch.randn(2, 2)])
  
imports: import os
  import sys
  from typing import Any, List, Tuple
  from collections import OrderedDict
  import torch
  import torch.nn
  from torch.testing._internal.jit_utils import JitTestCase
label_desc: Use image node_id 8 for calling the TestModuleContainers obj's underlying member method code with example usage: obj.test_moduledict_getitem() and returns: input