code: def test_remove_users_with_fewer_than_n_interactions(
      df_with_users_interacting_only_once,
  ):
      expected = pd.DataFrame(
          data={
              "userId": [0, 1, 1, 2, 2, 2, 3, 3, 3, 0],
              "itemId": [1, 2, 3, 4, 5, 6, 7, 8, 9, 2],
          }
      )
  
      actual = remove_users_with_fewer_than_n_interactions(
          df=df_with_users_interacting_only_once,
          min_num_of_interactions=2,
          user_col="userId",
      )
  
      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 8 for calling a global function with example usage: test_remove_users_with_fewer_than_n_interactions(df_with_users_interacting_only_once) without return types