code: def test_getitem_bool_index_all(box):
      # GH#22533
      ind1 = box([True] * 5)
      idx = MultiIndex.from_tuples(
          [(10, 1), (20, 2), (30, 3), (40, 4), (50, 5)]
      )
      tm.assert_index_equal(idx[ind1], idx)
  
      ind2 = box([True, False, True, False, False])
      expected = MultiIndex.from_tuples([(10, 1), (30, 3)])
      tm.assert_index_equal(idx[ind2], expected)
  
imports: from datetime import timedelta
  import re
  import numpy
  import pytest
  from pandas._libs import index
  from pandas.errors import InvalidIndexError, PerformanceWarning
  import pandas
  from pandas import Categorical, DataFrame, Index, MultiIndex, date_range
  import pandas._testing
label_desc: Use image node_id 3 for calling a global function with example usage: test_getitem_bool_index_all(box) without return types