code: def test_from_tuples_iterator():
      # GH 18434
      # input iterator for tuples
      expected = MultiIndex(
          levels=[[1, 3], [2, 4]],
          codes=[[0, 1], [0, 1]],
          names=["a", "b"],
      )
  
      result = MultiIndex.from_tuples(
          zip([1, 3], [2, 4]), names=["a", "b"]
      )
      tm.assert_index_equal(result, expected)
  
      # input non-iterables
      msg = "Input must be a list / sequence of tuple-likes."
      with pytest.raises(TypeError, match=msg):
          MultiIndex.from_tuples(0)
  
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 18 for calling a global function with example usage: test_from_tuples_iterator() without return types