code: def test_set_get_bitset(values_to_insert, expected_bitset):
      n_32bits_ints = 3
      bitset = np.zeros(n_32bits_ints, dtype=np.uint32)
      for value in values_to_insert:
          set_bitset_memoryview(bitset, value)
      assert_allclose(expected_bitset, bitset)
      for value in range(32 * n_32bits_ints):
          if value in values_to_insert:
              assert in_bitset_memoryview(bitset, value)
          else:
              assert not in_bitset_memoryview(bitset, value)
  
imports: import numpy
  import pytest
  from numpy.testing import assert_allclose
  from sklearn.ensemble._hist_gradient_boosting._bitset import in_bitset_memoryview, set_bitset_memoryview, set_raw_bitset_from_binned_bitset
  from sklearn.ensemble._hist_gradient_boosting.common import X_DTYPE
label_desc: Use image node_id 1 for calling a global function with example usage: test_set_get_bitset(values_to_insert, expected_bitset) without return types