def METHOD_NAME(data, mag):
    c = data.draw(complex_numbers(max_magnitude=mag))
    # Note we accept epsilon errors here as internally sqrt is used to draw
    # complex numbers. sqrt on some platforms gets epsilon errors, which is
    # too tricky to filter out and so - for now - we just accept them.
    assert abs(c) <= mag * (1 + sys.float_info.epsilon)