code: def test_get_valid_models():
      old_environ = os.environ
      os.environ = {
          "OPENAI_API_KEY": "temp"
      }  # mock set only openai key in environ
  
      valid_models = get_valid_models()
      print(valid_models)
  
      # list of openai supported llms on litellm
      expected_models = (
          litellm.open_ai_chat_completion_models
          + litellm.open_ai_text_completion_models
      )
  
      assert valid_models == expected_models
  
      # reset replicate env key
      os.environ = old_environ
  
imports: import sys, os
  from dotenv import load_dotenv
  import copy
  import os
  import pytest
  import litellm
  from litellm.utils import trim_messages, get_token_count, get_valid_models, check_valid_key, validate_environment, function_to_dict, token_counter
label_desc: Use image node_id 10 for calling a global function with example usage: test_get_valid_models() without return types