def METHOD_NAME(self):
    """Tests that default state dict methods are automatically available"""
    class DefaultStateDictModule(torch.nn.Module):
        def __init__(self):
            super().__init__()
            self.conv = torch.nn.Conv2d(6, 16, 5)
            self.fc = torch.nn.Linear(16 * 5 * 5, 120)
        def forward(self, x):
            x = self.conv(x)
            x = self.fc(x)
            return x
    m1 = torch.jit.script(DefaultStateDictModule())
    m2 = torch.jit.script(DefaultStateDictModule())
    state_dict = m1.state_dict()
    m2.load_state_dict(state_dict)