code: def test_als_predict_basic(m):
      algo = als.BiasedMF(20, iterations=10, method=m)
      algo.fit(simple_df)
  
      assert algo.bias.mean_ == approx(simple_df.rating.mean())
  
      preds = algo.predict_for_user(10, [3])
      assert len(preds) == 1
      assert preds.index[0] == 3
      assert preds.loc[3] >= -0.1
      assert preds.loc[3] <= 5.1
  
imports: import logging
  import pickle
  from pickletools import dis
  from lenskit.algorithms import als
  from lenskit import util
  import pandas
  import numpy
  from seedbank import numpy_rng
  from pytest import approx, mark
  from lenskit.util import Stopwatch
  import lenskit.util.test
label_desc: Use image node_id 3 for calling a global function with example usage: test_als_predict_basic(m) without return types