code: def test_prompt_formatting():
      try:
          prompt = prompt_factory(
              model="mistralai/Mistral-7B-Instruct-v0.1",
              messages=[
                  {"role": "system", "content": "Be a good bot"},
                  {"role": "user", "content": "Hello world"},
              ],
          )
          assert (
              prompt
              == "<s>[INST] Be a good bot [/INST]</s> [INST] Hello world [/INST]"
          )
      except Exception as e:
          pytest.fail(f"An exception occurred: {str(e)}")
  
file_path: litellm/litellm/tests/test_hf_prompt_templates.py
imports: import sys, os
  import traceback
  from dotenv import load_dotenv
  import os
  import pytest
  from litellm.llms.prompt_templates.factory import prompt_factory
label_desc: Use image node_id 1 for calling a global function with example usage: test_prompt_formatting() without return types