code: def test_fitting():
      users, items = 10, 100
  
      dataset = Dataset()
      dataset.fit(range(users), range(items))
  
      assert dataset.interactions_shape() == (users, items)
      assert dataset.user_features_shape() == (users, users)
      assert dataset.item_features_shape() == (items, items)
  
      assert dataset.build_interactions([])[0].shape == (users, items)
      assert dataset.build_user_features([]).getnnz() == users
      assert dataset.build_item_features([]).getnnz() == items
  
imports: import numpy
  import pytest
  from lightfm.data import Dataset
label_desc: Use image node_id 1 for calling a global function with example usage: test_fitting() without return types