code: def test_memorized_batch_ord():
      algo = basic.Memorized(simple_df)
  
      preds = algo.predict(
          pd.DataFrame({"user": [10, 12, 10], "item": [1, 1, 2]})
      )
      assert set(preds.index) == set([0, 1, 2])
      assert all(preds == [4.0, 3.0, 5.0])
  
file_path: lkpy/tests/test_util_algos.py
imports: from lenskit.algorithms import basic
  import pandas
  import numpy
  import lenskit.util.test
label_desc: Use image node_id 3 for calling a global function with example usage: test_memorized_batch_ord() without return types