async def METHOD_NAME(tracer, test_spans):
    # Test patch idempotence
    patch()
    patch()
    service = "fo"
    conn = await aiomysql.connect(**AIOMYSQL_CONFIG)
    Pin.get_from(conn).clone(service=service, tracer=tracer).onto(conn)
    await (await conn.cursor()).execute("select 'dba4x4'")
    conn.close()
    spans = test_spans.pop()
    assert spans, spans
    assert len(spans) == 1
    # Test unpatch
    unpatch()
    conn = await aiomysql.connect(**AIOMYSQL_CONFIG)
    await (await conn.cursor()).execute("select 'dba4x4'")
    conn.close()
    spans = test_spans.pop()
    assert not spans, spans
    # Test patch again
    patch()
    conn = await aiomysql.connect(**AIOMYSQL_CONFIG)
    Pin.get_from(conn).clone(service=service, tracer=tracer).onto(conn)
    await (await conn.cursor()).execute("select 'dba4x4'")
    conn.close()
    spans = test_spans.pop()
    assert spans, spans
    assert len(spans) == 1