code: def test_exceptions():
      users, items = 10, 100
  
      dataset = Dataset()
      dataset.fit(range(users), range(items))
  
      with pytest.raises(ValueError):
          dataset.build_interactions([(users + 1, 0)])
  
      with pytest.raises(ValueError):
          dataset.build_interactions([(0, items + 1)])
  
      dataset.fit_partial([users + 1], [items + 1])
      dataset.build_interactions([(users + 1, 0)])
      dataset.build_interactions([(0, items + 1)])
  
imports: import numpy
  import pytest
  from lightfm.data import Dataset
label_desc: Use image node_id 3 for calling a global function with example usage: test_exceptions() without return types