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","."]
code: def write(self, values: base.LoggingData):
      flattened_values = {}
      for key, value in values.items():
          if key in self._raw_keys:
              flattened_values[key] = value
              continue
          name = f"{self._label}/{key}"
          if isinstance(value, dict):
              for sub_key, sub_value in value.items():
                  flattened_values[f"{name}/{sub_key}"] = sub_value
          else:
              flattened_values[name] = value
  
      self._logger.write(flattened_values)
  
imports: from typing import Sequence
  from acme.utils.loggers import base
label_desc: Use image node_id 2 for calling the FlattenDictLogger obj's underlying member method code with example usage: obj.write(values) without return types