code: def get_cache_dir(child_dir=""):
      """
      Returns the location of the directory where models are cached (and creates it if necessary).
      """
      # Issue warning to move data if old env is set
      if os.getenv("TORCH_MODEL_ZOO"):
          _logger.warning(
              "TORCH_MODEL_ZOO is deprecated, please use env TORCH_HOME instead"
          )
  
      hub_dir = get_dir()
      child_dir = () if not child_dir else (child_dir,)
      model_dir = os.path.join(hub_dir, "checkpoints", *child_dir)
      os.makedirs(model_dir, exist_ok=True)
      return model_dir
  
imports: import hashlib
  import json
  import logging
  import os
  from functools import partial
  from pathlib import Path
  from tempfile import TemporaryDirectory
  from typing import Iterable, Optional, Union
  import torch
  from torch.hub import HASH_REGEX, download_url_to_file, urlparse
  from timm import __version__
  from timm.models._pretrained import filter_pretrained_cfg
label_desc: Use image node_id 1 for calling a global function with example usage: get_cache_dir(child_dir) and returns: model_dir