def METHOD_NAME(instance_query, dd_run_check, datadog_agent):
    check = Couchbase('couchbase', {}, [instance_query])
    check.check_id = 'test:123'
    dd_run_check(check)
    data = check.get_data()
    nodes = data['stats']['nodes']
    raw_version = ""
    # Next, get all the nodes
    if nodes is not None:
        for node in nodes:
            raw_version = node['version']
    major, minor, patch = raw_version.split("-")[0].split(".")
    version_metadata = {
        'version.scheme': 'semver',
        'version.major': major,
        'version.minor': minor,
        'version.patch': patch,
        'version.release': mock.ANY,
        'version.build': 'enterprise',
        'version.raw': raw_version.replace('-enterprise', '+enterprise'),
    }
    datadog_agent.assert_metadata('test:123', version_metadata)