code: def test_get_loc_nested_tuple_raises_keyerror(self):
      # raise KeyError, not TypeError
      mi = MultiIndex.from_product(
          [range(3), range(4), range(5), range(6)]
      )
      key = ((2, 3, 4), "foo")
  
      with pytest.raises(KeyError, match=re.escape(str(key))):
          mi.get_loc(key)
  
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 13 for calling the TestGetLoc obj's underlying member method code with example usage: obj.test_get_loc_nested_tuple_raises_keyerror() without return types