code: def get_offline_dir(task_id=None):
      if not task_id:
          return get_cache_dir() / "offline"
      return get_cache_dir() / "offline" / task_id
  
imports: import logging
  import os
  import sys
  from os.path import expandvars, expanduser
  from ..backend_api import load_config
  from ..backend_config import Config
  from ..backend_config.bucket_config import S3BucketConfigurations
  from .defs import *
  from .remote import running_remotely_task_id
  from ..utilities.proxy_object import LazyEvalWrapper
label_desc: Use image node_id 3 for calling a global function with example usage: get_offline_dir(task_id) and returns: unknown, unknown