code: def get_apps_split_to_pinned_file_order(download_dir: str):
      """Lazily download and return a dict of subdirectory to pinned file order."""
      global _apps_split_to_pinned_file_order
      if not _apps_split_to_pinned_file_order:
          file_path: str = os.path.join(
              download_dir, _APPS_PINNED_FILE_ORDER_FILENAME
          )
          ensure_file_downloaded(
              source_url=_APPS_PINNED_FILE_ORDER_URL,
              target_path=file_path,
              unpack=False,
          )
          with open(file_path) as f:
              _apps_split_to_pinned_file_order = json.load(f)
      return _apps_split_to_pinned_file_order
  
imports: import json
  import os
  from typing import Dict, List
  from helm.common.general import ensure_file_downloaded
label_desc: Use image node_id 1 for calling a global function with example usage: get_apps_split_to_pinned_file_order(download_dir) and returns: _apps_split_to_pinned_file_order