code: def test_translations_found(self, tdir):
      translations = mock.Mock()
  
      with mock.patch(
          "mkdocs.localization.Translations.load",
          return_value=translations,
      ):
          install_translations(self.env, parse_locale("en"), [tdir])
  
      self.env.install_gettext_translations.assert_called_once_with(
          translations
      )
  
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 8 for calling the LocalizationTests obj's underlying member method code with example usage: obj.test_translations_found(tdir) without return types