code: def outputs(self) -> Mapping[str, Mapping[int, str]]:
      common_outputs = super(OnnxConfigWithPast, self).outputs
      # Renaming the outputs axes properly.
      for name, axes_names in common_outputs.items():
          sequence_name = (
              "encoder_sequence"
              if "encoder" in name
              else "decoder_sequence"
          )
          for axis_idx, name in axes_names.items():
              if "sequence" in name:
                  axes_names[axis_idx] = sequence_name
              # We reset the value as the order in common_outputs (OrderedDict) is lost otherwise
              else:
                  axes_names[axis_idx] = name
      if self.use_past:
          self.fill_with_past_key_values_(
              common_outputs, direction="outputs"
          )
  
      return common_outputs
  
imports: import copy
  import dataclasses
  import warnings
  from abc import ABC, abstractmethod
  from collections import OrderedDict
  from typing import TYPE_CHECKING, Any, Callable, Dict, Iterable, List, Mapping, Optional, Tuple, Union
  import numpy
  from packaging import version
  from ..utils import TensorType, is_torch_available, is_vision_available, logging
  from .utils import ParameterFormat, compute_effective_axis_dimension, compute_serialized_parameters_size
label_desc: Use image node_id 1 for calling the OnnxSeq2SeqConfigWithPast obj's underlying member method code with example usage: obj.outputs() and returns: common_outputs