code: def test_topk_ascending(k, batch, temp_memory):
      num_items = 10000
      factors = 10
      items = (
          np.arange(num_items * factors)
          .reshape((num_items, factors))
          .astype("float32")
      )
      queries = (
          np.arange(batch * factors)
          .reshape((batch, factors))
          .astype("float32")
      )
      _check_knn_queries(items, queries, k, max_temp_memory=temp_memory)
  
file_path: implicit/tests/gpu_test.py
imports: import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_array_equal
  from recommender_base_test import get_checker_board
  import implicit
label_desc: Use image node_id 1 for calling a global function with example usage: test_topk_ascending(k, batch, temp_memory) without return types