Got doctest working correctly for hots_nn_index