code: def set_dir(new_dir: str) -> None:
      """
      Sets the current ONNX hub cache location
  
      :param new_dir: location of new model hub cache
      """
      global _ONNX_HUB_DIR  # pylint: disable=global-statement
      _ONNX_HUB_DIR = new_dir
  
imports: import hashlib
  import json
  import os
  import sys
  import tarfile
  from io import BytesIO
  from os.path import join
  from typing import IO, Any, Dict, List, Optional, Set, Tuple, cast
  from urllib.error import HTTPError
  from urllib.request import urlopen
  import onnx
label_desc: Use image node_id 1 for calling a global function with example usage: set_dir(new_dir) without return types