class_docstr: Logger which flattens sub-dictionaries into the top level dict.
class_docstr_tok: ["Logger","which","flattens","sub-dictionaries","into","the","top","level","dict","."]
docstr: Initializer.
  
  Args:
    logger: The wrapped logger.
    label: The label to add as a prefix to all keys except for raw ones.
    raw_keys: The keys that should not be prefixed. The values for these keys
      must always be flat. Metric visualisation tools may require certain
      keys to be present in the logs (e.g. 'step', 'timestamp'), so these
      keys should not be prefixed.
docstr_tok: ["Initializer",".","Args",":","logger",":","The","wrapped","logger",".","label",":","The","label","to","add","as","a","prefix","to","all","keys","except","for","raw","ones",".","raw_keys",":","The","keys","that","should","not","be","prefixed",".","The","values","for","these","keys","must","always","be","flat",".","Metric","visualisation","tools","may","require","certain","keys","to","be","present","in","the","logs","(","e.g",".","'step","'",",","'timestamp","'",")",",","so","these","keys","should","not","be","prefixed","."]
code: def __init__(
      self,
      logger: base.Logger,
      label: str = "Logs",
      raw_keys: Sequence[str] = (),
  ):
      """Initializer.
  
      Args:
        logger: The wrapped logger.
        label: The label to add as a prefix to all keys except for raw ones.
        raw_keys: The keys that should not be prefixed. The values for these keys
          must always be flat. Metric visualisation tools may require certain
          keys to be present in the logs (e.g. 'step', 'timestamp'), so these
          keys should not be prefixed.
      """
      self._logger = logger
      self._label = label
      self._raw_keys = raw_keys
  
imports: from typing import Sequence
  from acme.utils.loggers import base
label_desc: Use image node_id 1 to create a new FlattenDictLogger object from inherited base classes: base with example: obj = FlattenDictLogger(logger, label, raw_keys)