code: def generate_vectorization_data(
      data,
      arg_names,
      expected_name=None,
      n_reps=2,
      vectorization_type="sym",
  ):
      """Create new data with vectorized version of inputs.
  
      Parameters
      ----------
      data : list of dict
          Data. Each to vectorize.
      arg_names: list
          Name of inputs to vectorize.
      expected_name: str or list of str
          Output name in case it needs to be repeated.
      n_reps: int
          Number of times the input points should be repeated.
      vectorization_type: str
          Possible values are 'sym', 'basic', or the format 'repeat-(int)'
          (e.g. "repeat-0-2").
          'sym': tests all repetition combinations.
          'basic': tests only no repetition and repetition of all.
          'repeat-(int)': tests repetition of provided indices.
      """
      n_args = len(arg_names)
      _check_vectorization_type(vectorization_type, n_args)
  
      if vectorization_type == "basic":
          comb_indices = [
              tuple(i for _ in range(n_args)) for i in range(2)
          ]
      else:
          comb_indices = list(itertools.product(*[range(2)] * n_args))
          comb_indices = _filter_combs(
              n_args, comb_indices, vectorization_type
          )
      comb_indices.pop(0)
  
      new_data = []
      for datum in data:
          new_data.extend(
              _generate_datum_vectorization_data(
                  datum,
                  comb_indices,
                  arg_names,
                  expected_name=expected_name,
                  n_reps=n_reps,
              )
          )
  
      return new_data
  
file_path: geomstats/geomstats/test/vectorization.py
imports: import copy
  import inspect
  import itertools
  from geomstats.vectorization import repeat_point
label_desc: Use image node_id 4 for calling a global function with example usage: generate_vectorization_data(data, arg_names, expected_name, n_reps, vectorization_type) and returns: new_data