def METHOD_NAME(aggregator, dd_run_check, mock_performance_objects):
    mock_performance_objects(
        {'Foo': (['instance1', 'instance2', 'instance1', 'instance2'], {'Bar': [6, 7, 8, 9], 'Baz': [6, 7, 8, 9]})}
    )
    check = get_check(
        {
            'metrics': {
                'Foo': {
                    'name': 'foo',
                    'tag_name': 'bat',
                    'counters': [{'Bar': {'name': 'bar', 'average': True}, 'Baz': {'name': 'baz'}}],
                }
            }
        }
    )
    dd_run_check(check)
    tags = ['bat:instance1']
    tags.extend(GLOBAL_TAGS)
    aggregator.assert_metric('test.foo.bar', 7, tags=tags)
    aggregator.assert_metric('test.foo.baz', 14, tags=tags)
    tags = ['bat:instance2']
    tags.extend(GLOBAL_TAGS)
    aggregator.assert_metric('test.foo.bar', 8, tags=tags)
    aggregator.assert_metric('test.foo.baz', 16, tags=tags)
    aggregator.assert_all_metrics_covered()