def METHOD_NAME(feature):
    if feature not in features:
        raise ValueError("Unknown feature %s" % feature)
    module, flag = features[feature]
    try:
        imported_module = __import__(module, fromlist=["PIL"])
        return getattr(imported_module, flag)
    except ImportError:
        return None