code: def test_unique_simplification():
      assert unique_simplification(
          [{"model": "A"}, {"model": "B"}], []
      ) == [{"model": "A"}, {"model": "B"}]
  
      # model differs, remove n
      assert unique_simplification(
          [{"model": "A", "n": 3}, {"model": "B", "n": 3}], []
      ) == [
          {"model": "A"},
          {"model": "B"},
      ]
  
      # model and n differ, remove n
      assert unique_simplification(
          [{"model": "A", "n": 3}, {"model": "B", "n": 4}], ["model"]
      ) == [
          {"model": "A"},
          {"model": "B"},
      ]
  
      # n differs, remove model
      assert unique_simplification(
          [{"model": "A", "n": 3}, {"model": "A", "n": 4}], ["model"]
      ) == [
          {"n": 3},
          {"n": 4},
      ]
  
file_path: H2O/h2o_hf/helm/src/helm/common/test_general.py
imports: import shutil
  import os
  from helm.common.general import ensure_file_downloaded, format_tags, flatten_list, format_split, get_file_name, unique_simplification
label_desc: Use image node_id 5 for calling a global function with example usage: test_unique_simplification() without return types