code: def test_duplicate_user_item_pairs_explicit(
      self,
      explicit_interactions_pandas,
      df_for_interactions_with_duplicates,
  ):
      duplicated_interactions = ExplicitInteractions(
          users=df_for_interactions_with_duplicates["user_id"],
          items=df_for_interactions_with_duplicates["item_id"],
          ratings=df_for_interactions_with_duplicates["ratings"],
          remove_duplicate_user_item_pairs=False,
      )
  
      assert (
          duplicated_interactions.mat.getnnz()
          != explicit_interactions_pandas.mat.getnnz()
      )
  
      non_duplicated_interactions = ExplicitInteractions(
          users=df_for_interactions_with_duplicates["user_id"],
          items=df_for_interactions_with_duplicates["item_id"],
          ratings=df_for_interactions_with_duplicates["ratings"],
          remove_duplicate_user_item_pairs=True,
      )
  
      assert (
          non_duplicated_interactions.mat.getnnz()
          == explicit_interactions_pandas.mat.getnnz()
      )
  
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 6 for calling the TestBadInteractionsInstantiation obj's underlying member method code with example usage: obj.test_duplicate_user_item_pairs_explicit(explicit_interactions_pandas, df_for_interactions_with_duplicates) without return types