code: def test_ollama_json_mode():
      # assert that format: json gets passed as is to ollama
      try:
          converted_params = get_optional_params(
              custom_llm_provider="ollama",
              model="llama2",
              format="json",
              temperature=0.5,
          )
          print("Converted params", converted_params)
          assert converted_params == {
              "temperature": 0.5,
              "format": "json",
          }, f"{converted_params} != {'temperature': 0.5, 'format': 'json'}"
      except Exception as e:
          pytest.fail(f"Error occurred: {e}")
  
file_path: litellm/litellm/tests/test_ollama.py
imports: import sys, os
  import traceback
  from dotenv import load_dotenv
  import os, io
  import pytest
  import litellm
  from litellm.utils import get_optional_params, get_llm_provider
label_desc: Use image node_id 3 for calling a global function with example usage: test_ollama_json_mode() without return types