def end_index_of_value_in_range(
        value,
        values):
    result = -1
    if len(values) > 0:
        if values[0] <= values[-1]:
            result = end_index_of_value_in_increasing_range(value, values)
        else:
            result = end_index_of_value_in_decreasing_range(value, values)
    return result
Establish that the `use_fields_as_options` attribute is honored
dataset/ETHPy150Open Esri/solutions-geoprocessing-toolbox/suitability/toolboxes/scripts/MultidimensionSupplementalTools/MultidimensionSupplementalTools/Scripts/mds/math.py/end_index_of_value_in_range--crossover with--dataset/ETHPy150Open ansible/tower-cli/tests/test_models_base.py/SubcommandTests.test_use_fields_as_options_false