def METHOD_NAME(instrument, elasticapm_client, mc_conn):
    elasticapm_client.begin_transaction("transaction.test")
    with capture_span("test_pymemcache", "test"):
        mc_conn.set("mykey", "a")
        assert b"a" == mc_conn.get("mykey")
        assert {"mykey": b"a"} == mc_conn.get_many(["mykey", "myotherkey"])
    elasticapm_client.end_transaction("BillingView")
    transactions = elasticapm_client.events[TRANSACTION]
    spans = elasticapm_client.spans_for_transaction(transactions[0])
    expected_signatures = {
        "test_pymemcache",
        "PooledClient.set",
        "PooledClient.get",
        "PooledClient.get_many",
    }
    assert {t["name"] for t in spans} == expected_signatures
    assert len(spans) == 4