def METHOD_NAME(value):
    '''
    :param str value: the datatype to check for validity.
    :raises ValueError: if the provided value is not a valid \
        datatype descriptor.
    '''
    const = LFRicConstants()
    FieldArgMetadata.validate_scalar_value(
        value, const.VALID_FIELD_DATA_TYPES, "datatype descriptor")