code: def get_app_state():
      
      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
docs: Get current status of application in context
  
      Returns:
          :obj:`dict` of application status