'Gets a Model. Blocks until finished.'

def get_model(self, project_id, model_name):

    assert ((model_name is not None) and (model_name is not ''))
    full_model_name = 'projects/{}/models/{}'.format(project_id, model_name)
    request = self._cloudml.projects().models().get(name=full_model_name)
    try:
        return request.execute()
    except errors.HttpError as e:
        if (e.resp.status == 404):
            logging.error('Model    was    not    found:    {}'.format(e))
            return None
        raise
