code: def __str__(self):
      if self.territory:
          return f"{self.language}_{self.territory}"
      return self.language
  
file_path: mkdocs/mkdocs/utils/babel_stub.py
imports: from __future__ import annotations
  from string import ascii_letters
  from typing import NamedTuple
label_desc: Use image node_id 1 for calling the Locale obj's underlying member method code with example usage: obj.__str__() and returns: self, self, str, self