code: def _get_cache_path(
      base_dir,
      accelerator="jit",
      ipex=True,
      precision="float32",
      low_memory=False,
      additional_suffix=None,
      lora_name=None,
  ):
      # base_dir = os.path.join(base_dir, f"unet")
      model_dir = [precision]
      if accelerator:
          model_dir.append(accelerator)
      if ipex and accelerator != "openvino":
          model_dir.append("ipex")
          if low_memory:
              model_dir.append("low_memory")
      if lora_name is not None:
          lora_name = lora_name.replace("/", "-")
          model_dir.append(lora_name)
      # if device != 'CPU':
      #     model_dir.append(device)
      if additional_suffix is not None:
          model_dir.append(additional_suffix)
      model_dir = "_".join(model_dir)
      return os.path.join(base_dir, model_dir)
  
file_path: BigDL/python/nano/src/bigdl/nano/diffusion/common/load.py
imports: import os
  import time
  from collections import OrderedDict
  from huggingface_hub import snapshot_download
  from bigdl.nano.pytorch import InferenceOptimizer
label_desc: Use image node_id 1 for calling a global function with example usage: _get_cache_path(base_dir, accelerator, ipex, precision, low_memory, additional_suffix, lora_name) and returns: os