code: def read_tgi_conv_models():
      try:
          global tgi_models_cache, conv_models_cache
          # Check if the cache is already populated
          # so we don't keep on reading txt file if there are 1k requests
          if (tgi_models_cache is not None) and (
              conv_models_cache is not None
          ):
              return tgi_models_cache, conv_models_cache
          # If not, read the file and populate the cache
          tgi_models = set()
          script_directory = os.path.dirname(os.path.abspath(__file__))
          # Construct the file path relative to the script's directory
          file_path = os.path.join(
              script_directory,
              "huggingface_llms_metadata",
              "hf_text_generation_models.txt",
          )
  
          with open(file_path, "r") as file:
              for line in file:
                  tgi_models.add(line.strip())
  
          # Cache the set for future use
          tgi_models_cache = tgi_models
  
          # If not, read the file and populate the cache
          file_path = os.path.join(
              script_directory,
              "huggingface_llms_metadata",
              "hf_conversational_models.txt",
          )
          conv_models = set()
          with open(file_path, "r") as file:
              for line in file:
                  conv_models.add(line.strip())
          # Cache the set for future use
          conv_models_cache = conv_models
          return tgi_models, conv_models
      except:
          return set(), set()
  
imports: import os, copy, types
  import json
  from enum import Enum
  import httpx, requests
  from .base import BaseLLM
  import time
  import litellm
  from typing import Callable, Dict, List, Any
  from litellm.utils import ModelResponse, Choices, Message, CustomStreamWrapper, Usage
  from typing import Optional
  from .prompt_templates.factory import prompt_factory, custom_prompt
label_desc: Use image node_id 2 for calling a global function with example usage: read_tgi_conv_models() and returns: tgi_models,  conv_models, tgi_models_cache,  conv_models_cache, set,  set