def get_model_summary(model):
    """
    get model summary string.

    :param model: Model, model object.
    :return: String, model summary string.
    """
    stringlist = []
    model.summary(print_fn=lambda x: stringlist.append(x))
    model_summary_string = '\n'.join(stringlist)

    return model_summary_string