code: def test_topk_random(k, batch, temp_memory):
      num_items = 1000
      factors = 10
  
      rs = np.random.default_rng(0)
      items = rs.random(size=(num_items, factors), dtype="float32")
      queries = rs.random(size=(batch, factors), dtype="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 2 for calling a global function with example usage: test_topk_random(k, batch, temp_memory) without return types