code: def test_from_arrays_index_series_categorical():
      # GH13743
      idx1 = pd.CategoricalIndex(
          list("abcaab"), categories=list("bac"), ordered=False
      )
      idx2 = pd.CategoricalIndex(
          list("abcaab"), categories=list("bac"), ordered=True
      )
  
      result = MultiIndex.from_arrays([idx1, idx2])
      tm.assert_index_equal(result.get_level_values(0), idx1)
      tm.assert_index_equal(result.get_level_values(1), idx2)
  
      result2 = MultiIndex.from_arrays([Series(idx1), Series(idx2)])
      tm.assert_index_equal(result2.get_level_values(0), idx1)
      tm.assert_index_equal(result2.get_level_values(1), idx2)
  
      result3 = MultiIndex.from_arrays([idx1.values, idx2.values])
      tm.assert_index_equal(result3.get_level_values(0), idx1)
      tm.assert_index_equal(result3.get_level_values(1), idx2)
  
imports: from datetime import date, datetime
  import itertools
  import numpy
  import pytest
  from pandas.core.dtypes.cast import construct_1d_object_array_from_listlike
  import pandas
  from pandas import Index, MultiIndex, Series, Timestamp, date_range
  import pandas._testing
label_desc: Use image node_id 12 for calling a global function with example usage: test_from_arrays_index_series_categorical() without return types