code: def create_long_prompt_with_secret(
      prompt_len=None, secret_pos=None, model_name=None
  ):
      import time
  
      t0 = time.time()
      before = "## UUID key/value pairs to remember:\n\n"
      while num_tokens_from_string(before, model_name) < secret_pos:
          before += f"'{make_key()}' = '{make_value()}'\n"
      after = ""
      while num_tokens_from_string(after, model_name) < (
          prompt_len - secret_pos - ANSWER_LEN
      ):
          after += f"'{make_key()}' = '{make_value()}'\n"
      prompt = get_prompt(before, after)
      assert SECRET_VALUE in prompt
      assert num_tokens_from_string(prompt, model_name) <= prompt_len
      t1 = time.time()
      print("time to create long prompt: %.4f" % (t1 - t0))
      return prompt
  
file_path: h2ogpt/tests/test_long_context.py
imports: import pytest
  from tests.utils import wrap_test_forked
  from src.enums import LangChainAction
  from importlib.metadata import version
  from packaging import version
  import uuid
label_desc: Use image node_id 5 for calling a global function with example usage: create_long_prompt_with_secret(prompt_len, secret_pos, model_name) and returns: prompt