class_docstr: Container for multiple `Scene` objects.
class_docstr_tok: ["Container","for","multiple","`","Scene","`","objects","."]
docstr: Maybe format decoration.
  
  If the nested dictionary in decorate (argument to ``save_animation``)
  contains a text to be added, format those based on dataset parameters.
code: def _format_decoration(ds, decorate):
      """Maybe format decoration.
  
      If the nested dictionary in decorate (argument to ``save_animation``)
      contains a text to be added, format those based on dataset parameters.
      """
      if decorate is None or "decorate" not in decorate:
          return decorate
      deco_local = copy.deepcopy(decorate)
      for deco in deco_local["decorate"]:
          if "text" in deco and "txt" in deco["text"]:
              deco["text"]["txt"] = deco["text"]["txt"].format(
                  **ds.attrs
              )
      return deco_local
  
imports: from __future__ import annotations
  import copy
  import logging
  import warnings
  from queue import Queue
  from threading import Thread
  from typing import Callable, Collection, Mapping
  import dask.array
  import numpy
  import xarray
  from satpy.dataset import DataID
  from satpy.scene import Scene
  from satpy.writers import get_enhanced_image, split_results
label_desc: Use image node_id 22 for calling the MultiScene obj's underlying member method code with example usage: obj._format_decoration(ds, decorate) and returns: deco_local, decorate