code: def create_light_instance_from_instance(
      instance: Instance,
  ) -> LightInstance:
      """Create a LightInstance given an Instance. Only keep the text attributes."""
      input_text: str = instance.input.text
      reference_texts: List[str] = [
          reference.output.text for reference in instance.references
      ]
      return LightInstance(input=input_text, references=reference_texts)
  
file_path: H2O/h2o_hf/helm/src/helm/benchmark/contamination/export_scenario_text.py
imports: import json
  import os
  import argparse
  from typing import List, DefaultDict
  from collections import defaultdict
  from helm.common.general import asdict_without_nones, ensure_directory_exists
  from helm.common.hierarchical_logger import hlog, htrack_block
  from helm.benchmark.scenarios.scenario import Scenario, Instance, create_scenario, TRAIN_SPLIT, VALID_SPLIT, TEST_SPLIT
  from helm.benchmark.presentation.run_entry import read_run_entries
  from helm.benchmark.run import run_entries_to_run_specs
  from helm.benchmark.runner import RunSpec
  from helm.benchmark.contamination.light_scenario import LightInstance, LightScenario, LightScenarioKey
label_desc: Use image node_id 1 for calling a global function with example usage: create_light_instance_from_instance(instance) and returns: LightInstance