code: def test_param_sanity():
      with pytest.raises(AssertionError):
          LightFM(no_components=-1)
  
      with pytest.raises(AssertionError):
          LightFM(user_alpha=-1.0)
  
      with pytest.raises(AssertionError):
          LightFM(item_alpha=-1.0)
  
      with pytest.raises(ValueError):
          LightFM(max_sampled=-1.0)
  
imports: import numpy
  import pytest
  import scipy.sparse
  from lightfm.lightfm import LightFM
label_desc: Use image node_id 9 for calling a global function with example usage: test_param_sanity() without return types