code: def _get_current_locale(lc_var: int = locale.LC_ALL) -> str:
      # getlocale is not always compliant with setlocale, use setlocale. GH#46595
      return locale.setlocale(lc_var)
  
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 1 for calling a global function with example usage: _get_current_locale(lc_var) and returns: locale