code: def test_repeat_add_selections():
      base = alt.Chart("data.csv").mark_point()
      selection = alt.selection_point()
      alt.Chart._counter = 0
      chart1 = base.add_params(selection).repeat(list("ABC"))
      alt.Chart._counter = 0
      chart2 = base.repeat(list("ABC")).add_params(selection)
      assert chart1.to_dict() == chart2.to_dict()
  
imports: import io
  import json
  import operator
  import os
  import pathlib
  import tempfile
  import jsonschema
  import pytest
  import pandas
  import altair.vegalite.v5
label_desc: Use image node_id 22 for calling a global function with example usage: test_repeat_add_selections() without return types