code: def test_fsvd_clamp_build():
      algo = svd.FunkSVD(20, iterations=20, range=(1, 5))
      algo.fit(simple_df)
  
      assert algo.bias.mean_ == approx(simple_df.rating.mean())
      assert algo.item_features_.shape == (3, 20)
      assert algo.user_features_.shape == (3, 20)
  
file_path: lkpy/tests/test_funksvd.py
imports: import logging
  import pickle
  from pathlib import Path
  import lenskit.algorithms.funksvd
  import pandas
  import numpy
  from pytest import approx, mark
  import lenskit.util.test
label_desc: Use image node_id 2 for calling a global function with example usage: test_fsvd_clamp_build() without return types