code: def test_tuple_index():
      # GH 35534 - Selecting values when a Series has an Index of tuples
      s = Series([1, 2], index=[("a",), ("b",)])
      assert s[("a",)] == 1
      assert s[("b",)] == 2
      s[("b",)] = 3
      assert s[("b",)] == 3
  
imports: from datetime import timedelta
  import re
  import numpy
  import pytest
  from pandas.errors import IndexingError
  from pandas import NA, DataFrame, Index, IndexSlice, MultiIndex, NaT, Series, Timedelta, Timestamp, concat, date_range, isna, period_range, timedelta_range
  import pandas._testing
label_desc: Use image node_id 23 for calling a global function with example usage: test_tuple_index() without return types