code: def test_completion_cohere():  # commenting for now as the cohere endpoint is being flaky
      try:
          litellm.CohereConfig(max_tokens=1000, stop_sequences=["a"])
          response = completion(
              model="command-nightly",
              messages=messages,
              logger_fn=logger_fn,
          )
          # Add any assertions here to check the response
          print(response)
          response_str = response["choices"][0]["message"]["content"]
          response_str_2 = response.choices[0].message.content
          if type(response_str) != str:
              pytest.fail(f"Error occurred: {e}")
          if type(response_str_2) != str:
              pytest.fail(f"Error occurred: {e}")
      except Exception as e:
          pytest.fail(f"Error occurred: {e}")
  
imports: import sys, os
  import traceback
  from dotenv import load_dotenv
  import os, io
  import pytest
  import litellm
  from litellm import embedding, completion, completion_cost, Timeout
  from litellm import RateLimitError
  import openai
label_desc: Use image node_id 14 for calling a global function with example usage: test_completion_cohere() without return types