code: def clear_strategies(self, client_conn, remove_client=False):
          
          assert get_thread_ident() == self._server.ioloop_thread_id
  
          getter = (self._strategies.pop if remove_client
                    else self._strategies.get)
          strategies = getter(client_conn, None)
          if strategies is not None:
              for sensor, strategy in list(strategies.items()):
                  strategy.cancel()
                  del strategies[sensor]
docs: Clear the sensor strategies of a client connection.
  
          Parameters
          ----------
          client_connection : ClientConnection instance
              The connection that should have its sampling strategies cleared
          remove_client : bool, optional
              Remove the client connection from the strategies datastructure.
              Useful for clients that disconnect.