def METHOD_NAME(
    self, code, silent=False, store_history=True, user_expressions=None, allow_stdin=None
):
    """Execute code on the client."""
    if allow_stdin is None:
        allow_stdin = self.allow_stdin
    content = dict(
        code=code,
        silent=silent,
        store_history=store_history,
        user_expressions=user_expressions or {},
        allow_stdin=allow_stdin,
    )
    msg = self.session.msg("execute_request", content)
    self._dispatch_to_kernel(msg)
    return msg["header"]["msg_id"]