code: def _get_loss_from_output(
      output: Sequence[Mapping[str, Any]],
      loss_key: str = CommonKeys.LOSS,
  ) -> Any:
      return output[0][loss_key]
  
imports: from __future__ import annotations
  from collections import defaultdict
  from collections.abc import Callable, Mapping, Sequence
  from enum import Enum
  from threading import RLock
  from typing import TYPE_CHECKING, Any
  from monai.config import IgniteInfo
  from monai.utils import min_version, optional_import
  from monai.utils.enums import CommonKeys
label_desc: Use image node_id 1 for calling a global function with example usage: _get_loss_from_output(output, loss_key) and returns: output