def METHOD_NAME(registry, force_ndarray=False):
    if ufloat is None:
        class Measurement(object):
            def __init__(self, *args):
                raise RuntimeError("Pint requires the 'uncertainties' package to create a Measurement object.")
    else:
        class Measurement(_Measurement, registry.Quantity):
            pass
    Measurement._REGISTRY = registry
    Measurement.force_ndarray = force_ndarray
    return Measurement