code: def _to_h2ogpt_params(
      client_params: Dict[str, Any]
  ) -> OrderedDict[str, Any]:
      """Convert given params to the order of params in h2oGPT."""
  
      h2ogpt_params: OrderedDict[str, Any] = collections.OrderedDict()
      for (
          h2ogpt_param_name,
          client_param_name,
      ) in _H2OGPT_PARAMETERS_TO_CLIENT.items():
          if client_param_name in client_params:
              h2ogpt_params[h2ogpt_param_name] = client_params[
                  client_param_name
              ]
      return h2ogpt_params
  
imports: import abc
  import ast
  import collections
  from typing import Any, AsyncGenerator, Dict, Generator, List, Optional, OrderedDict, Union
  from h2ogpt_client._gradio_client import GradioClientWrapper
  from h2ogpt_client._h2ogpt_enums import DocumentSubset, LangChainAction, LangChainMode, PromptType
  from h2ogpt_client._models import Model
label_desc: Use image node_id 1 for calling a global function with example usage: _to_h2ogpt_params(client_params) and returns: h2ogpt_params