code: def test_reset_index_allow_duplicates_check(
      self, multiindex_df, allow_duplicates
  ):
      with pytest.raises(ValueError, match="expected type bool"):
          multiindex_df.reset_index(allow_duplicates=allow_duplicates)
  
imports: from datetime import datetime
  from itertools import product
  import numpy
  import pytest
  from pandas.core.dtypes.common import is_float_dtype, is_integer_dtype
  import pandas
  from pandas import Categorical, CategoricalIndex, DataFrame, Index, Interval, IntervalIndex, MultiIndex, RangeIndex, Series, Timestamp, cut, date_range
  import pandas._testing
label_desc: Use image node_id 19 for calling the TestResetIndex obj's underlying member method code with example usage: obj.test_reset_index_allow_duplicates_check(multiindex_df, allow_duplicates) without return types