def METHOD_NAME(uvector):
    match = None
    for test_func in list(uvector_mappings.keys()):
        if test_func(uvector):
            match = uvector_mappings[test_func]
            return numpy.array(match[0](uvector), dtype=match[1])
    else:
        raise ValueError(
            "unsupported uvector data type for conversion to numpy array %s" % (uvector))