def build_model(self, args):
    model = models.build_model(args, self)
    if (not isinstance(model, FairseqMultiModel)):
        raise ValueError('PyTorchTranslateMultiTask requires a FairseqMultiModel architecture')
    return model
def build_model(self, args):
    model = models.build_model(args, self)
    if (not isinstance(model, FairseqMultiModel)):
        raise ValueError('PyTorchTranslateMultiTask requires a FairseqMultiModel architecture')
    return model