def METHOD_NAME(self) -> None:
    """Tests that trying to retrieve a fake class raises an error."""
    with self.assertRaisesRegex(
        TypeError, 'not a valid translatable object class'):
        # TODO(#13059): Here we use MyPy ignore because after we fully type
        # the codebase we plan to get rid of the tests that intentionally
        # test wrong inputs that we can normally catch by typing.
        translatable_object_registry.Registry.get_object_class( # type: ignore[call-overload]
            'FakeClass')