code: def test_from_arrays_empty():
      # 0 levels
      msg = "Must pass non-zero number of levels/codes"
      with pytest.raises(ValueError, match=msg):
          MultiIndex.from_arrays(arrays=[])
  
      # 1 level
      result = MultiIndex.from_arrays(arrays=[[]], names=["A"])
      assert isinstance(result, MultiIndex)
      expected = Index([], name="A")
      tm.assert_index_equal(result.levels[0], expected)
      assert result.names == ["A"]
  
      # N levels
      for N in [2, 3]:
          arrays = [[]] * N
          names = list("ABC")[:N]
          result = MultiIndex.from_arrays(arrays=arrays, names=names)
          expected = MultiIndex(
              levels=[[]] * N, codes=[[]] * N, names=names
          )
          tm.assert_index_equal(result, expected)
  
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 13 for calling a global function with example usage: test_from_arrays_empty() without return types