code: def test_sharing_mode():
      "Ensure sharing mode decorator turns on sharing"
      assert not lks.in_share_context()
  
      with lks.sharing_mode():
          assert lks.in_share_context()
  
      assert not lks.in_share_context()
  
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 1 for calling a global function with example usage: test_sharing_mode() without return types