code: def deployed_models(
      headers: Optional[Dict] = None,
  ) -> List[DeployedModel]:
      """
      Get all currently deployed models with text-generation-inference-support
  
      Returns:
          List[DeployedModel]: list of all currently deployed models
      """
      resp = requests.get(
          f"https://api-inference.huggingface.co/framework/text-generation-inference",
          headers=headers,
          timeout=5,
      )
  
      payload = resp.json()
      if resp.status_code != 200:
          raise parse_error(resp.status_code, payload)
  
      models = [
          DeployedModel(**raw_deployed_model)
          for raw_deployed_model in payload
      ]
      return models
  
file_path: text-generation-inference/clients/python/text_generation/inference_api.py
imports: import os
  import requests
  from typing import Dict, Optional, List
  from huggingface_hub.utils import build_hf_headers
  from text_generation import Client, AsyncClient, __version__
  from text_generation.types import DeployedModel
  from text_generation.errors import NotSupportedError, parse_error
label_desc: Use image node_id 1 for calling a global function with example usage: deployed_models(headers) and returns: models