code: def test_get_locs_reordering(keys, expected):
      # GH48384
      idx = MultiIndex.from_arrays(
          [
              [2, 2, 1],
              [4, 5, 6],
          ]
      )
      result = idx.get_locs(keys)
      expected = np.array(expected, dtype=np.intp)
      tm.assert_numpy_array_equal(result, 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 9 for calling a global function with example usage: test_get_locs_reordering(keys, expected) without return types