<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_app_state():
 """Get current status of application in context Returns: :obj:`dict` of application status """

    if not hasattr(g, 'app_state'):
        model = get_model()
        g.app_state = {
            'app_title': APP_TITLE,
            'model_name': type(model).__name__,
            'latest_ckpt_name': model.latest_ckpt_name,
            'latest_ckpt_time': model.latest_ckpt_time
        }
    return g.app_state