code: def test_persist():
      "Test default persistence"
      matrix = np.random.randn(1000, 100)
      share = lks.persist(matrix)
      try:
          m2 = share.get()
          assert m2 is not matrix
          assert np.all(m2 == matrix)
          del m2
      finally:
          share.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 4 for calling a global function with example usage: test_persist() without return types