code: def _setup_default_tools():
      global HUGGINGFACE_DEFAULT_TOOLS
      global _tools_are_initialized
  
      if _tools_are_initialized:
          return
  
      main_module = importlib.import_module("transformers")
      tools_module = main_module.tools
  
      remote_tools = get_remote_tools()
      for task_name, tool_class_name in TASK_MAPPING.items():
          tool_class = getattr(tools_module, tool_class_name)
          description = tool_class.description
          HUGGINGFACE_DEFAULT_TOOLS[tool_class.name] = PreTool(
              task=task_name, description=description, repo_id=None
          )
  
      if not is_offline_mode():
          for task_name in HUGGINGFACE_DEFAULT_TOOLS_FROM_HUB:
              found = False
              for tool_name, tool in remote_tools.items():
                  if tool.task == task_name:
                      HUGGINGFACE_DEFAULT_TOOLS[tool_name] = tool
                      found = True
                      break
  
              if not found:
                  raise ValueError(
                      f"{task_name} is not implemented on the Hub."
                  )
  
      _tools_are_initialized = True
  
imports: import importlib.util
  import json
  import os
  import time
  from dataclasses import dataclass
  from typing import Dict
  import requests
  from huggingface_hub import HfFolder, hf_hub_download, list_spaces
  from ..models.auto import AutoTokenizer
  from ..utils import is_offline_mode, is_openai_available, is_torch_available, logging
  from .base import TASK_MAPPING, TOOL_CONFIG_FILE, Tool, load_tool, supports_remote
  from .prompts import CHAT_MESSAGE_PROMPT, download_prompt
  from .python_interpreter import evaluate
label_desc: Use image node_id 2 for calling a global function with example usage: _setup_default_tools() without return types