code: def test_encoding_detected():
      system_locale = os.environ.get("LC_ALL")
      system_encoding = (
          system_locale.split(".")[-1] if system_locale else "utf-8"
      )
  
      assert (
          codecs.lookup(pd.options.display.encoding).name
          == codecs.lookup(system_encoding).name
      )
  
file_path: pandas/pandas/tests/config/test_localization.py
imports: import codecs
  import locale
  import os
  import pytest
  from pandas._config.localization import can_set_locale, get_locales, set_locale
  from pandas.compat import ISMUSL
  import pandas
label_desc: Use image node_id 10 for calling a global function with example usage: test_encoding_detected() without return types