class_docstr: Mixin to test a bunch of common functionality in models
  deriving from RecommenderBase
code: def test_similar_users_filter(self):
      model = self._get_model()
      # calculating similar users in nearest-neighbours is not implemented yet
      if isinstance(model, ItemItemRecommender):
          return
  
      model.fit(get_checker_board(256), show_progress=False)
      userids = np.arange(50)
  
      try:
          ids, _ = model.similar_users(
              userids, N=10, filter_users=np.arange(52) * 5
          )
      except NotImplementedError:
          return
  
      for userid in userids:
          for r in ids[userid]:
              self.assertTrue(r % 5 != 0)
  
      selected = np.arange(10)
      ids, _ = model.similar_users(userids, N=10, users=selected)
      for userid in userids:
          self.assertEqual(set(ids[userid]), set(selected))
  
imports: import os
  import pickle
  import random
  import tempfile
  import numpy
  import pytest
  from numpy.testing import assert_array_equal
  from scipy.sparse import coo_matrix, csr_matrix
  from implicit.evaluation import precision_at_k
  from implicit.nearest_neighbours import ItemItemRecommender
  from implicit.utils import ParameterWarning
label_desc: Use image node_id 8 for calling the RecommenderBaseTestMixin obj's underlying member method code with example usage: obj.test_similar_users_filter() without return types