code: def get_app_state(device_id, app_id):
      
      if not is_valid_app_id(app_id):
          abort(403)
      if not is_valid_device_id(device_id):
          abort(403)
      if device_id not in devices:
          abort(404)
      app_state = devices[device_id].app_state(app_id)
      return jsonify(state=app_state, status=app_state)
docs: Get the state of the requested app