code: def test_ExplicitInteractions(
      explicit_interactions_matrix,
      explicit_interactions_sparse_matrix,
      explicit_interactions_pandas,
  ):
      np.testing.assert_equal(
          explicit_interactions_matrix.toarray(),
          explicit_interactions_sparse_matrix.toarray(),
      )
      np.testing.assert_equal(
          explicit_interactions_matrix.toarray(),
          explicit_interactions_pandas.toarray(),
      )
      assert (
          explicit_interactions_matrix.num_users
          == explicit_interactions_sparse_matrix.num_users
          == explicit_interactions_pandas.num_users
      )
      assert (
          explicit_interactions_matrix.num_items
          == explicit_interactions_sparse_matrix.num_items
          == explicit_interactions_pandas.num_items
      )
      assert (
          explicit_interactions_matrix.num_interactions
          == explicit_interactions_sparse_matrix.num_interactions
          == explicit_interactions_pandas.num_interactions
      )
  
      expected_repr = (
          "ExplicitInteractions object with 12 interactions between 6 users and 10 items,"
          " with minimum rating of 1 and maximum rating of 5."
      )
      assert (
          str(explicit_interactions_matrix)
          == str(explicit_interactions_sparse_matrix)
          == str(explicit_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 2 for calling a global function with example usage: test_ExplicitInteractions(explicit_interactions_matrix, explicit_interactions_sparse_matrix, explicit_interactions_pandas) without return types