code: def test_valid_language_territory(self):
      locale = parse_locale("en_US")
      self.assertEqual(locale.language, "en")
      self.assertEqual(locale.territory, "US")
      self.assertEqual(str(locale), "en_US")
  
file_path: mkdocs/mkdocs/tests/localization_tests.py
imports: import unittest
  from unittest import mock
  from mkdocs.config.base import ValidationError
  from mkdocs.localization import install_translations, parse_locale
  from mkdocs.tests.base import tempdir
label_desc: Use image node_id 4 for calling the LocalizationTests obj's underlying member method code with example usage: obj.test_valid_language_territory() without return types