code: def test_qcut_bool_coercion_to_int(bins, box, compare):
      # issue 20303
      data_expected = box([0, 1, 1, 0, 1] * 10)
      data_result = box([False, True, True, False, True] * 10)
      expected = qcut(data_expected, bins, duplicates="drop")
      result = qcut(data_result, bins, duplicates="drop")
      compare(result, expected)
  
imports: import os
  import numpy
  import pytest
  import pandas
  from pandas import Categorical, DatetimeIndex, Interval, IntervalIndex, NaT, Series, Timedelta, TimedeltaIndex, Timestamp, cut, date_range, isna, qcut, timedelta_range
  import pandas._testing
  from pandas.api.types import CategoricalDtype
  from pandas.tseries.offsets import Day
label_desc: Use image node_id 18 for calling a global function with example usage: test_qcut_bool_coercion_to_int(bins, box, compare) without return types