code: def test_explode_sets():
      # https://github.com/pandas-dev/pandas/issues/35614
      df = pd.DataFrame({"a": [{"x", "y"}], "b": [1]}, index=[1])
      result = df.explode(column="a").sort_values(by="a")
      expected = pd.DataFrame(
          {"a": ["x", "y"], "b": [1, 1]}, index=[1, 1]
      )
      tm.assert_frame_equal(result, expected)
  
file_path: pandas/pandas/tests/frame/methods/test_explode.py
imports: import re
  import numpy
  import pytest
  import pandas
  import pandas._testing
label_desc: Use image node_id 9 for calling a global function with example usage: test_explode_sets() without return types