code: def get_raft_prompt_settings(subset: str, cache_dir=None):
      assert subset in SUBSETS, "Unknown subset: {}".format(subset)
  
      if cache_dir is None:
          cache_dir = tempfile.gettempdir()
  
      prompt_construction_settings_path = os.path.join(
          cache_dir, "prompt_construction_settings.json"
      )
      ensure_directory_exists(cache_dir)
      ensure_file_downloaded(
          source_url=PROMPT_SETTINGS_URL,
          target_path=prompt_construction_settings_path,
      )
      with open(prompt_construction_settings_path, "r") as f:
          field_ordering, instructions = map(
              json.loads, f.read().strip().split("\n")
          )
  
      return field_ordering[subset], instructions[subset]
  
file_path: H2O/h2o_hf/helm/src/helm/benchmark/scenarios/raft_scenario.py
imports: import random
  import os
  import json
  import tempfile
  import datasets
  from pathlib import Path
  from typing import List, Dict
  from helm.common.general import ensure_file_downloaded, ensure_directory_exists
  from .scenario import Scenario, Instance, Reference, CORRECT_TAG, TRAIN_SPLIT, TEST_SPLIT, Input, Output
label_desc: Use image node_id 1 for calling a global function with example usage: get_raft_prompt_settings(subset, cache_dir) and returns: field_ordering,  instructions