code: def _weight_hub_files_from_model_info(
      info: hf_api.ModelInfo, extension: str
  ) -> List[str]:
      return [
          s.rfilename
          for s in info.siblings
          if s.rfilename.endswith(extension)
          and len(s.rfilename.split("/")) == 1
          and "arguments" not in s.rfilename
          and "args" not in s.rfilename
          and "training" not in s.rfilename
      ]
  
file_path: text-generation-inference/server/text_generation_server/utils/hub.py
imports: import time
  import os
  from datetime import timedelta
  from loguru import logger
  from pathlib import Path
  from typing import Optional, List
  from huggingface_hub import file_download, hf_api, HfApi, hf_hub_download
  from huggingface_hub.constants import HUGGINGFACE_HUB_CACHE
  from huggingface_hub.utils import LocalEntryNotFoundError, EntryNotFoundError, RevisionNotFoundError
label_desc: Use image node_id 2 for calling a global function with example usage: _weight_hub_files_from_model_info(info, extension) and returns: unknown