code: def test_intersection(c=BitSet):
      assert c([2, 4, 5]) & c([3, 9]) == c()
      assert c([2, 4, 5]) & c([4, 5, 9]) == c([4, 5])
      b = c([2, 4, 5])
      assert b.intersection([4, 5, 9]) == c([4, 5])
      b.intersection_update([4, 5, 9])
      assert list(b) == [4, 5]
      b = c([2, 4, 5])
      b.intersection_update(c([4, 5, 9]))
      assert list(b) == [4, 5]
  
file_path: whoosh/tests/test_bits.py
imports: from whoosh.filedb.filestore import RamStorage
  from whoosh.idsets import BitSet, OnDiskBitSet, SortedIntSet
label_desc: Use image node_id 4 for calling a global function with example usage: test_intersection(c) without return types