<human>:  numpy index of nearest value.
<bot>:)

# Enter the value
value = 2.5

# Calling the function
print((_nearest_value_index(array, value)))

#Example Output
# 1

#Remember to inspect code for bugs.