code: def test_filter(self):
      reader = Reader(bin_threshold=4.0)
      data = reader.read(self.data_file)
      self.assertEqual(len(data), 8)
      self.assertListEqual([x[2] for x in data], [1] * len(data))
  
      reader = Reader(min_user_freq=2)
      self.assertEqual(len(reader.read(self.data_file)), 0)
  
      reader = Reader(min_item_freq=2)
      self.assertEqual(len(reader.read(self.data_file)), 0)
  
      reader = Reader(user_set=["76"], item_set=["93"])
      self.assertEqual(len(reader.read(self.data_file)), 1)
  
      reader = Reader(user_set=["76", "768"])
      self.assertEqual(len(reader.read(self.data_file)), 2)
  
      reader = Reader(item_set=["93", "257", "795"])
      self.assertEqual(len(reader.read(self.data_file)), 3)
  
file_path: cornac/tests/cornac/data/test_reader.py
imports: import unittest
  from cornac.data import Reader
  from cornac.data.reader import read_text
label_desc: Use image node_id 8 for calling the TestReader obj's underlying member method code with example usage: obj.test_filter() without return types