code: def test_completion_invalid_param_cohere():
      try:
          response = completion(
              model="command-nightly", messages=messages, top_p=1
          )
          print(f"response: {response}")
      except Exception as e:
          if "Unsupported parameters passed: top_p" in str(e):
              pass
          else:
              pytest.fail(f"An error occurred {e}")
  
file_path: litellm/litellm/tests/test_bad_params.py
imports: import sys, os
  import traceback
  import pytest
  import litellm
  from litellm import embedding, completion
  from litellm.utils import Message
label_desc: Use image node_id 3 for calling a global function with example usage: test_completion_invalid_param_cohere() without return types