code: def get_client_state(self):
          " Return the active ClientState instance. "
          app = get_app()
          for client_state in self._client_states.values():
              if client_state.app == app:
                  return client_state
  
          raise ValueError('Client state for app %r not found' % (app, )f get_client_state(self):
          " Return the active ClientState instance. "
          app = get_app()
          for client_state in self._client_states.values():
              if client_state.app == app:
                  return client_state
  
          raise ValueError('Client state for app %r not found' % (app, ))
docs: Return the active ClientState instance.