def METHOD_NAME(self) -> None:
    model_id = (
        translation_models.MachineTranslationModel.create(
            'en', 'es', 'hello world', 'hola mundo')
    )
    # Ruling out the possibility of None for mypy type checking.
    assert model_id is not None
    model_instance = translation_models.MachineTranslationModel.get(
        model_id)
    # Ruling out the possibility of None for mypy type checking.
    assert model_instance is not None
    self.assertEqual(
        translation_fetchers.get_translation_from_model(
            model_instance).to_dict(),
        translation_domain.MachineTranslation(
            'en', 'es', 'hello world', 'hola mundo').to_dict()
    )