code: def test_aggregates_widget_init_all(self):
      data = {"a": [1, 2, 3], "b": ["a", "b", "c"]}
      for agg in Aggregate:
          widget = PerspectiveWidget(data, aggregates={"a": agg})
          assert widget.aggregates == {"a": agg.value}
  
file_path: perspective/python/perspective/perspective/tests/core/test_aggregates.py
imports: from pytest import raises
  from perspective import PerspectiveError, PerspectiveViewer, PerspectiveWidget, Aggregate, Table
label_desc: Use image node_id 6 for calling the TestAggregates obj's underlying member method code with example usage: obj.test_aggregates_widget_init_all() without return types