class_docstr: Object representing a locale.
  
  After calling one of `load_translations` or `load_gettext_translations`,
  call `get` or `get_closest` to get a Locale object.
docstr: Returns the translation for the given message for this locale.
  
  If ``plural_message`` is given, you must also provide
  ``count``. We return ``plural_message`` when ``count != 1``,
  and we return the singular form for the given message when
  ``count == 1``.
docstr_tok: ["Returns","the","translation","for","the","given","message","for","this","locale",".","If","``","plural_message","``","is","given",",","you","must","also","provide","``","count","``",".","We","return","``","plural_message","``","when","``","count","!","=","1","``",",","and","we","return","the","singular","form","for","the","given","message","when","``","count","==","1","``","."]
code: def translate(
      self,
      message: str,
      plural_message: Optional[str] = None,
      count: Optional[int] = None,
  ) -> str:
      """Returns the translation for the given message for this locale.
  
      If ``plural_message`` is given, you must also provide
      ``count``. We return ``plural_message`` when ``count != 1``,
      and we return the singular form for the given message when
      ``count == 1``.
      """
      raise NotImplementedError()
  
imports: import codecs
  import csv
  import datetime
  import gettext
  import glob
  import os
  import re
  from tornado import escape
  from tornado.log import gen_log
  from tornado._locale_data import LOCALE_NAMES
  from typing import Iterable, Any, Union, Dict, Optional
label_desc: Use image node_id 4 for calling the Locale obj's underlying member method code with example usage: obj.translate(message, plural_message, count) without return types