code: def test_df_to_interactions(df_to_turn_to_interactions):
      expected = np.array(
          [
              [0, 0, 1, 0, 0],
              [0, 1, 1, 1, 0],
              [0, 0, 1, 0, 1],
              [1, 0, 0, 0, 0],
              [0, 0, 1, 0, 0],
          ]
      )
  
      actual = df_to_interactions(
          df=df_to_turn_to_interactions,
          user_col="userId",
          item_col="itemId",
          ratings_col=None,
          check_num_negative_samples_is_valid=False,
      )
  
      np.testing.assert_equal(actual.toarray(), 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 5 for calling a global function with example usage: test_df_to_interactions(df_to_turn_to_interactions) without return types