code: def test_store_als():
      algo = BiasedMF(10)
      algo.fit(lktu.ml_test.ratings)
  
      shared = lks.persist(algo)
      k2 = pickle.loads(pickle.dumps(shared))
      try:
          a2 = k2.get()
  
          assert a2 is not algo
          assert a2.item_features_ is not algo.item_features_
          assert np.all(a2.item_features_ == algo.item_features_)
          assert a2.user_features_ is not algo.user_features_
          assert np.all(a2.user_features_ == algo.user_features_)
          del a2
          k2.close()
          del k2
      finally:
          shared.close()
  
file_path: lkpy/tests/test_sharing.py
imports: import os
  import pickle
  import numpy
  import lenskit.util.test
  from lenskit import sharing
  from lenskit.algorithms.als import BiasedMF
  from pytest import mark
label_desc: Use image node_id 7 for calling a global function with example usage: test_store_als() without return types