code: def test_empty_dict_override_contains(self):
      class CustomModuleInterface(torch.nn.Module):
          pass
  
      class CustomModuleDict(
          CustomModuleInterface, torch.nn.ModuleDict
      ):
          def __init__(self, modules=None):
              CustomModuleInterface.__init__(self)
              torch.nn.ModuleDict.__init__(self, modules)
  
      class MyModule(torch.nn.Module):
          def __init__(self):
              super().__init__()
              # work around aliasing issue for 'is' operator by scripting ReLU up front
              self.submod = torch.jit.script(torch.nn.ReLU())
              self.moduledict = CustomModuleDict()
  
          def forward(self, inputs):
              assert (
                  "submod" not in self.moduledict
              ), "__contains__ fails for ModuleDict"
              return inputs
  
      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 11 for calling the TestModuleContainers obj's underlying member method code with example usage: obj.test_empty_dict_override_contains() and returns: inputs