class_docstr: Base Container class.
class_docstr_tok: ["Base","Container","class","."]
docstr: Convenience method to conform `struct` to `outputs` structure.
  
  Mappings performed:
  
  (1) Map a dict to a list of outputs, using the output names.
  (2) Fill missing keys in a dict w/ `None`s.
  (3) Map a single item to all outputs.
  
  Args:
    outputs: Model predictions.
    struct: Arbitrary nested structure (e.g. of labels, sample_weights,
      losses, or metrics).
  
  Returns:
    Mapping of `struct` to `outputs` structure.
code: def _conform_to_outputs(self, outputs, struct):
      """Convenience method to conform `struct` to `outputs` structure.
  
      Mappings performed:
  
      (1) Map a dict to a list of outputs, using the output names.
      (2) Fill missing keys in a dict w/ `None`s.
      (3) Map a single item to all outputs.
  
      Args:
        outputs: Model predictions.
        struct: Arbitrary nested structure (e.g. of labels, sample_weights,
          losses, or metrics).
  
      Returns:
        Mapping of `struct` to `outputs` structure.
      """
      struct = map_to_output_names(outputs, self._output_names, struct)
      struct = map_missing_dict_keys(outputs, struct)
      # Allow passing one object that applies to all outputs.
      if not nest.is_nested(struct) and nest.is_nested(outputs):
          struct = nest.map_structure(lambda _: struct, outputs)
      return struct
  
imports: import copy
  from tensorflow.python.distribute import distribute_lib
  from tensorflow.python.keras import losses
  from tensorflow.python.keras import metrics
  from tensorflow.python.keras.utils import generic_utils
  from tensorflow.python.keras.utils import losses_utils
  from tensorflow.python.keras.utils import tf_utils
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.util import nest
label_desc: Use image node_id 3 for calling the Container obj's underlying member method code with example usage: obj._conform_to_outputs(outputs, struct) and returns: struct