def METHOD_NAME(self):
    model = EncoderDecoderRecognizer(
        decoder=dict(type='DummyModule', value=1))
    self.assertEqual(
        model.predict(torch.tensor([1]), None), torch.Tensor([1]))
    model = EncoderDecoderRecognizer(
        encoder=dict(type='DummyModule', value=2),
        decoder=dict(type='DummyModule', value=1))
    self.assertEqual(
        model.predict(torch.tensor([1]), None), torch.Tensor([4]))
    model = EncoderDecoderRecognizer(
        backbone=dict(type='DummyModule', value=1),
        encoder=dict(type='DummyModule', value=2),
        decoder=dict(type='DummyModule', value=1))
    self.assertEqual(
        model.predict(torch.tensor([1]), None), torch.Tensor([6]))
    model = EncoderDecoderRecognizer(
        backbone=dict(type='DummyModule', value=1),
        decoder=dict(type='DummyModule', value=1))
    self.assertEqual(
        model.loss(torch.tensor([1]), None), torch.Tensor([2]))