code: def test_hash_tuples():
      tuples = [(1, "one"), (1, "two"), (2, "one")]
      result = hash_tuples(tuples)
  
      expected = hash_pandas_object(
          MultiIndex.from_tuples(tuples)
      ).values
      tm.assert_numpy_array_equal(result, expected)
  
      # We only need to support MultiIndex and list-of-tuples
      msg = "|".join(
          [
              "object is not iterable",
              "zip argument #1 must support iteration",
          ]
      )
      with pytest.raises(TypeError, match=msg):
          hash_tuples(tuples[0])
  
imports: import numpy
  import pytest
  import pandas
  from pandas import DataFrame, Index, MultiIndex, Series, period_range, timedelta_range
  import pandas._testing
  from pandas.core.util.hashing import hash_tuples
  from pandas.util import hash_array, hash_pandas_object
label_desc: Use image node_id 8 for calling a global function with example usage: test_hash_tuples() without return types