def is_value_in(constants_group, value):
    """Checks whether value can be found in the given constants group,
    which in turn, must be a Django-like choices tuple.
    """
    return value in [k for k, v in constants_group]