code: def test_cli_llamacpp(monkeypatch):
      prompt_type, full_path = get_llama()
  
      query = "Who are you?"
      monkeypatch.setattr("builtins.input", lambda _: query)
  
      from src.gen import main
  
      langchain_mode = "Disabled"
      all_generations = main(
          base_model="llama",
          cli=True,
          cli_loop=False,
          score_model="None",
          langchain_mode=langchain_mode,
          prompt_type=prompt_type,
          model_path_llama=full_path,
          user_path=None,
          langchain_modes=[langchain_mode],
          document_subset=DocumentSubset.Relevant.name,
          verbose=True,
      )
  
      print(all_generations)
      assert len(all_generations) == 1
      assert (
          "I'm a software engineer with a passion for building scalable"
          in all_generations[0]
          or "how can I assist" in all_generations[0]
          or "am a virtual assistant" in all_generations[0]
          or "My name is John." in all_generations[0]
          or "I am a student" in all_generations[0]
          or "I'm LLaMA" in all_generations[0]
      )
  
file_path: h2ogpt/tests/test_cli.py
imports: import pytest
  from tests.utils import wrap_test_forked, get_llama
  from src.enums import DocumentSubset
label_desc: Use image node_id 4 for calling a global function with example usage: test_cli_llamacpp(monkeypatch) without return types