code: def test_spss_umlauts(datapath):
      # test file from the Haven project (https://haven.tidyverse.org/)
      # Licence at LICENSES/HAVEN_LICENSE, LICENSES/HAVEN_MIT
      fname = datapath("io", "data", "spss", "umlauts.sav")
  
      df = pd.read_spss(fname, convert_categoricals=True)
      expected = pd.DataFrame(
          {
              "var1": [
                  "the ä umlaut",
                  "the ü umlaut",
                  "the ä umlaut",
                  "the ö umlaut",
              ]
          }
      )
      expected["var1"] = pd.Categorical(expected["var1"])
      tm.assert_frame_equal(df, expected)
  
      df = pd.read_spss(fname, convert_categoricals=False)
      expected = pd.DataFrame({"var1": [1.0, 2.0, 1.0, 3.0]})
      tm.assert_frame_equal(df, expected)
  
file_path: pandas/pandas/tests/io/test_spss.py
imports: import datetime
  from pathlib import Path
  import numpy
  import pytest
  import pandas
  import pandas._testing
  from pandas.util.version import Version
label_desc: Use image node_id 4 for calling a global function with example usage: test_spss_umlauts(datapath) without return types