code: def standardize_model_name(
      model_name: str,
      is_completion: bool = False,
  ) -> str:
      """
      Standardize the model name to a format that can be used in the OpenAI API.
  
      Args:
          model_name: Model name to standardize.
          is_completion: Whether the model is used for completion or not.
              Defaults to False.
  
      Returns:
          Standardized model name.
  
      """
      model_name = model_name.lower()
      if ".ft-" in model_name:
          model_name = model_name.split(".ft-")[0] + "-azure-finetuned"
      if "ft:" in model_name:
          model_name = model_name.split(":")[1] + "-finetuned"
      if is_completion and (
          model_name.startswith("gpt-4")
          or model_name.startswith("gpt-3.5")
          or model_name.startswith("gpt-35")
          or "finetuned" in model_name
      ):
          # The cost of completion token is different from
          # the cost of prompt tokens.
          return f"{model_name}-completion"
      else:
          return model_name
  
file_path: pandas-ai/pandasai/helpers/openai_info.py
imports: from contextlib import contextmanager
  from contextvars import ContextVar
  from typing import Optional, Generator
label_desc: Use image node_id 1 for calling a global function with example usage: standardize_model_name(model_name, is_completion) and returns: model_name, str, model_name