code: def test_frozenset_index():
      # GH35747 - Selecting values when a Series has an Index of frozenset
      idx0, idx1 = frozenset("a"), frozenset("b")
      s = Series([1, 2], index=[idx0, idx1])
      assert s[idx0] == 1
      assert s[idx1] == 2
      s[idx1] = 3
      assert s[idx1] == 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 24 for calling a global function with example usage: test_frozenset_index() without return types