code: def _set_models(self, args):
      if "api_key" in args:
          args["openai_api_key"] = args[
              "api_key"
          ]  # remove this once #7496 is fixed
      client = self._get_client(
          get_api_key("openai", args, self.engine_storage)
      )
      self.all_models = [m.id for m in client.models.list()]
      self.chat_completion_models = [
          m.id
          for m in client.models.list()
          if m.rayllm_metadata["engine_config"]["model_type"]
          == "text-generation"
      ]  # noqa
      self.supported_ft_models = self.chat_completion_models
  
imports: import os
  import openai
  import json
  import contextlib
  from typing import Optional, Dict
  import pandas
  from mindsdb.integrations.handlers.openai_handler.openai_handler import OpenAIHandler
  from mindsdb.integrations.handlers.openai_handler.constants import OPENAI_API_BASE
  from mindsdb.integrations.utilities.handler_utils import get_api_key
  from mindsdb.utilities import log
label_desc: Use image node_id 7 for calling the AnyscaleEndpointsHandler obj's underlying member method code with example usage: obj._set_models(args) without return types