code: def test_cli_langchain_llamacpp(monkeypatch):
      prompt_type, full_path = get_llama()
  
      from tests.utils import make_user_path_test
  
      user_path = make_user_path_test()
  
      query = "What is the cat doing?"
      monkeypatch.setattr("builtins.input", lambda _: query)
  
      from src.gen import main
  
      all_generations = main(
          base_model="llama",
          cli=True,
          cli_loop=False,
          score_model="None",
          langchain_mode="UserData",
          model_path_llama=full_path,
          prompt_type=prompt_type,
          user_path=user_path,
          langchain_modes=["UserData", "MyData"],
          document_subset=DocumentSubset.Relevant.name,
          verbose=True,
      )
  
      print(all_generations)
      assert len(all_generations) == 1
      assert (
          "pexels-evg-kowalievska-1170986_small.jpg"
          in all_generations[0]
      )
      assert (
          "The cat is sitting on a window seat and looking out the window"
          in all_generations[0]
          or "staring out the window at the city skyline"
          in all_generations[0]
          or "The cat is likely relaxing and enjoying"
          in all_generations[0]
          or "The cat is sitting on a window seat and looking out"
          in all_generations[0]
          or "cat in the image is" in all_generations[0]
          or "The cat is sitting on a window" in all_generations[0]
          or "The cat is sitting and looking out the window at the view of the city outside."
          in all_generations[0]
          or "cat is sitting on a window sill" 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 3 for calling a global function with example usage: test_cli_langchain_llamacpp(monkeypatch) without return types