code: def lang_locale(request):
      # As locale test classes are prefixed with Test, we are dynamically getting the locale by the test class name.
      # TestEnglishLocale -> EnglishLocale
      name = request.cls.__name__[4:]
      request.cls.locale = locales.get_locale_by_class_name(name)
  
file_path: arrow-py/tests/conftest.py
imports: from datetime import datetime
  import pytest
  from dateutil import tz
  from arrow import arrow, factory, formatter, locales, parser
label_desc: Use image node_id 9 for calling a global function with example usage: lang_locale(request) without return types