code: def test_data_preprocessor():
      # Test that each Instance is given a unique ID and is preserved through data augmentation
      data_preprocessor = DataPreprocessor(DataAugmenterSpec())
      scenario: Scenario = create_scenario(get_scenario_spec1())
      instances = with_instance_ids(scenario.get_instances())
      instances: List[Instance] = data_preprocessor.preprocess(
          instances
      )
      for i, instance in enumerate(instances):
          assert instance.id == f"id{i}"
  
file_path: H2O/h2o_hf/helm/src/helm/benchmark/test_data_preprocessor.py
imports: from typing import List
  from .augmentations.data_augmenter import DataAugmenterSpec
  from .augmentations.perturbation import PerturbationSpec
  from .data_preprocessor import DataPreprocessor
  from .run_specs import get_scenario_spec1
  from .scenarios.scenario import create_scenario, Instance, Scenario, with_instance_ids
label_desc: Use image node_id 1 for calling a global function with example usage: test_data_preprocessor() without return types