code: def offline():
      current_value = text_generation_server.utils.hub.HF_HUB_OFFLINE
      text_generation_server.utils.hub.HF_HUB_OFFLINE = True
      yield "offline"
      text_generation_server.utils.hub.HF_HUB_OFFLINE = current_value
  
file_path: text-generation-inference/server/tests/utils/test_hub.py
imports: import os
  import requests
  import tempfile
  import pytest
  import huggingface_hub.constants
  from huggingface_hub import hf_api
  import text_generation_server.utils.hub
  from text_generation_server.utils.hub import weight_hub_files, download_weights, weight_files, EntryNotFoundError, LocalEntryNotFoundError, RevisionNotFoundError
label_desc: Use image node_id 1 for calling a global function with example usage: offline() without return types