code: def run_client_nochat_api_lean(
      prompt,
      prompt_type,
      max_new_tokens,
      version=None,
      h2ogpt_key=None,
      chat_conversation=None,
      system_prompt="",
  ):
      kwargs = dict(
          instruction_nochat=prompt,
          h2ogpt_key=h2ogpt_key,
          chat_conversation=chat_conversation,
          system_prompt=system_prompt,
      )
  
      api_name = "/submit_nochat_api"  # NOTE: like submit_nochat but stable API for string dict passing
      client = get_client(serialize=not is_gradio_version4)
      res = client.predict(
          str(dict(kwargs)),
          api_name=api_name,
      )
      print("Raw client result: %s" % res, flush=True)
      res_dict = dict(
          prompt=kwargs["instruction_nochat"],
          response=md_to_text(ast.literal_eval(res)["response"]),
          sources=ast.literal_eval(res)["sources"],
          h2ogpt_key=h2ogpt_key,
      )
      print(res_dict)
      return res_dict, client
  
imports: import ast
  import time
  import os
  import markdown
  import pytest
  from bs4 import BeautifulSoup
  from src.utils import is_gradio_version4
  from tests.utils import get_inf_server
label_desc: Use image node_id 9 for calling a global function with example usage: run_client_nochat_api_lean(prompt, prompt_type, max_new_tokens, version, h2ogpt_key, chat_conversation, system_prompt) and returns: res_dict,  client