code: def listdir_with_pinned_file_order(
      download_dir: str, split: str, class_name: str
  ) -> List[str]:
      """List files for the split in a pinned order for IMDB to ensure reproducibility.
  
      Unfortunately, the previous official HELM runs used the arbitrary file order
      produced by os.listdir() and did not sort the files, so future runs must use
      the same file order in order to sample the same instances to reproduce
      the official HELM runs."""
      return get_split_to_class_to_pinned_file_order(download_dir)[
          split
      ][class_name]
  
imports: import json
  import os
  from typing import Dict, List
  from helm.common.general import ensure_file_downloaded
label_desc: Use image node_id 2 for calling a global function with example usage: listdir_with_pinned_file_order(download_dir, split, class_name) and returns: get_split_to_class_to_pinned_file_order