code: def test_tuples_with_name_string():
      # GH 15110 and GH 14848
  
      li = [(0, 0, 1), (0, 1, 0), (1, 0, 0)]
      msg = "Names should be list-like for a MultiIndex"
      with pytest.raises(ValueError, match=msg):
          Index(li, name="abc")
      with pytest.raises(ValueError, match=msg):
          Index(li, name="a")
  
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 21 for calling a global function with example usage: test_tuples_with_name_string() without return types