code: def test_explicit_to_implicit_with_duplicate_user_id_item_id_pairs(
      explicit_df_with_duplicate_user_item_pairs,
  ):
      expected = pd.DataFrame(
          data={
              "userId": [3, 2, 1],
              "itemId": [1, 0, 3],
              "rating": [1, 1, 1],
          }
      )
  
      actual = convert_to_implicit(
          explicit_df_with_duplicate_user_item_pairs,
          user_col="userId",
          item_col="itemId",
      )
  
      pd.testing.assert_frame_equal(actual, expected)
  
imports: import copy
  from unittest import mock
  import numpy
  import pandas
  import pytest
  from collie.utils import convert_to_implicit, create_ratings_matrix, df_to_html, df_to_interactions, get_init_arguments, remove_users_with_fewer_than_n_interactions, Timer
label_desc: Use image node_id 7 for calling a global function with example usage: test_explicit_to_implicit_with_duplicate_user_id_item_id_pairs(explicit_df_with_duplicate_user_item_pairs) without return types