code: def test_als_basic_build(m):
      algo = als.ImplicitMF(
          20, iterations=10, progress=util.no_progress, method=m
      )
      algo.fit(simple_df)
  
      assert set(algo.user_index_) == set([10, 12, 13])
      assert set(algo.item_index_) == set([1, 2, 3])
      assert algo.user_features_.shape == (3, 20)
      assert algo.item_features_.shape == (3, 20)
  
imports: import logging
  from lenskit import util
  from lenskit.algorithms import als
  import pandas
  import numpy
  from scipy import stats
  import binpickle
  from seedbank import numpy_rng
  from pytest import mark, approx
  import lenskit.util.test
  from lenskit.algorithms import Recommender
  from lenskit.util import Stopwatch
label_desc: Use image node_id 1 for calling a global function with example usage: test_als_basic_build(m) without return types