code: def test_intersection_lexsort_depth(
      levels1, levels2, codes1, codes2, names
  ):
      # GH#25169
      mi1 = MultiIndex(levels=levels1, codes=codes1, names=names)
      mi2 = MultiIndex(levels=levels2, codes=codes2, names=names)
      mi_int = mi1.intersection(mi2)
      assert mi_int._lexsort_depth == 2
  
imports: import numpy
  import pytest
  import pandas
  from pandas import CategoricalIndex, DataFrame, Index, IntervalIndex, MultiIndex, Series
  import pandas._testing
  from pandas.api.types import is_float_dtype, is_unsigned_integer_dtype
label_desc: Use image node_id 42 for calling a global function with example usage: test_intersection_lexsort_depth(levels1, levels2, codes1, codes2, names) without return types