code: def test_explicit_to_implicit(explicit_df):
      expected = pd.DataFrame(
          data={"userId": [3, 1], "itemId": [1, 3], "rating": [1, 1]}
      )
  
      actual = convert_to_implicit(
          explicit_df, 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 6 for calling a global function with example usage: test_explicit_to_implicit(explicit_df) without return types