def check_model_completeness(self, model):
    """Verify that the model has been fully configured.

    Args:
      model: a fully-configured Model
    """
    for attr in ['context', 'predictions', 'train_op', 'loss', 'evaluations']:
      if getattr(model, attr, None) is None:
        raise ValueError('model has no %s set' % attr)
Verify that the model has been fully configured.

    Args:
      model: a fully-configured Model
    
language/nql/nql/util.py