code: def test_nan_interactions():
      no_users, no_items = (1000, 1000)
  
      train = sp.rand(no_users, no_items, format="csr", random_state=42)
      train.data *= np.nan
  
      model = LightFM(loss="warp")
  
      with pytest.raises(ValueError):
          model.fit(train)
  
imports: import numpy
  import pytest
  import scipy.sparse
  from lightfm.lightfm import LightFM
label_desc: Use image node_id 16 for calling a global function with example usage: test_nan_interactions() without return types