code: def run_client_nochat(
      prompt,
      prompt_type,
      max_new_tokens,
      version=None,
      h2ogpt_key=None,
      visible_models=None,
  ):
      kwargs, args = get_args(
          prompt,
          prompt_type,
          chat=False,
          max_new_tokens=max_new_tokens,
          version=version,
          visible_models=visible_models,
          h2ogpt_key=h2ogpt_key,
      )
  
      api_name = "/submit_nochat"
      client = get_client(serialize=not is_gradio_version4)
      res = client.predict(
          *tuple(args),
          api_name=api_name,
      )
      print("Raw client result: %s" % res, flush=True)
      res_dict = dict(
          prompt=kwargs["instruction_nochat"],
          iinput=kwargs["iinput_nochat"],
          response=md_to_text(res),
      )
      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 5 for calling a global function with example usage: run_client_nochat(prompt, prompt_type, max_new_tokens, version, h2ogpt_key, visible_models) and returns: res_dict,  client