def decodeField(value, decode_function):
    """
    Decodes a field value using given decode_function
    :param value: 
    :param decode_function: 
    :return: 
    """
    if value is None:
        return None
    return decode_function(value)
