code: def inject_chatsep(prompt_type, prompt, chat_sep=None):
      if chat_sep:
          # only add new line if structured prompt, while 'plain' is just generation of next tokens from input
          prompt += chat_sep
      return prompt
  
file_path: h2ogpt/src/prompter.py
imports: import ast
  import time
  from enums import PromptType, gpt_token_mapping, anthropic_mapping, google_mapping, mistralai_mapping
label_desc: Use image node_id 3 for calling a global function with example usage: inject_chatsep(prompt_type, prompt, chat_sep) and returns: prompt