code: def path_in_cache(file_path):
      os.makedirs(CACHE_DIR, exist_ok=True)
      if os.path.exists(file_path):
          return file_path
      full_path = os.path.join(CACHE_DIR, file_path)
      if full_path.endswith(".zip"):
          return os.path.dirname(full_path)
      return full_path
  
file_path: textflint/textflint/common/utils/install.py
imports: import os
  import shutil
  import tempfile
  import zipfile
  import filelock
  import requests
  import tqdm
  from .logger import logger
  from ..settings import CACHE_DIR
label_desc: Use image node_id 2 for calling a global function with example usage: path_in_cache(file_path) and returns: full_path, file_path, os