code: def test_Interactions(
      interactions_matrix,
      interactions_sparse_matrix,
      interactions_pandas,
  ):
      np.testing.assert_equal(
          interactions_matrix.toarray(),
          interactions_sparse_matrix.toarray(),
      )
      np.testing.assert_equal(
          interactions_matrix.toarray(), interactions_pandas.toarray()
      )
      assert (
          interactions_matrix.num_users
          == interactions_sparse_matrix.num_users
          == interactions_pandas.num_users
      )
      assert (
          interactions_matrix.num_items
          == interactions_sparse_matrix.num_items
          == interactions_pandas.num_items
      )
      assert (
          interactions_matrix.num_interactions
          == interactions_sparse_matrix.num_interactions
          == interactions_pandas.num_interactions
      )
  
      expected_repr = (
          "Interactions object with 12 interactions between 6 users and 10 items,"
          " returning 10 negative samples per interaction."
      )
      assert (
          str(interactions_matrix)
          == str(interactions_sparse_matrix)
          == str(interactions_pandas)
          == expected_repr
      )
  
imports: import sys
  import numpy
  import pandas
  import pytest
  from collie.interactions import ApproximateNegativeSamplingInteractionsDataLoader, ExplicitInteractions, HDF5Interactions, HDF5InteractionsDataLoader, Interactions, InteractionsDataLoader
label_desc: Use image node_id 1 for calling a global function with example usage: test_Interactions(interactions_matrix, interactions_sparse_matrix, interactions_pandas) without return types