def METHOD_NAME(
    elasticsearch_url, mvt_setup, node_class, ca_certs
):
    try:
        import mapbox_vector_tile
    except ImportError:
        return pytest.skip("Requires the 'mapbox-vector-tile' package")
    client = Elasticsearch(elasticsearch_url, node_class=node_class, ca_certs=ca_certs)
    resp = client.search_mvt(
        index="museums",
        zoom=13,
        x=4207,
        y=2692,
        field="location",
        body={
            "grid_precision": 2,
            "fields": ["name", "price"],
            "query": {"term": {"included": True}},
            "aggs": {
                "min_price": {"min": {"field": "price"}},
                "max_price": {"max": {"field": "price"}},
                "avg_price": {"avg": {"field": "price"}},
            },
        },
    )
    assert resp.meta.status == 200
    assert isinstance(resp.body, bytes)
    # Decode the binary as MVT
    tile = mapbox_vector_tile.decode(resp.body)
    # Assert some general things about the structure, mostly we want
    # to know that we got back a valid MVT.
    assert set(tile.keys()) == {"hits", "aggs", "meta"}