code: def fliplr_labels_deaugment(
      logits: Tensor,
      reduction: MaybeStrOrCallable = "mean",
  ) -> Tensor:
      """
      Deaugment input tensor (output of the model) assuming the input was fliplr-augmented image (See fliplr_image_augment).
      Args:
          logits: Tensor of [B * 2, C] shape
          reduction: If True performs averaging of 2 outputs, otherwise - summation.
  
      Returns:
          Tensor of [B, C, H, W] shape.
      """
      orig, flipped_lr = split_into_chunks(logits, 2)
      logits: Tensor = torch.stack([orig, flipped_lr])
      return _deaugment_averaging(logits, reduction=reduction)
  
imports: from collections import defaultdict
  from functools import partial
  from typing import Tuple, List, Optional, Union, Callable, Dict, Mapping
  import torch
  from torch import Tensor, nn
  from .None import functional
  from ..utils.support import pytorch_toolbelt_deprecated
label_desc: Use image node_id 27 for calling a global function with example usage: fliplr_labels_deaugment(logits, reduction) and returns: _deaugment_averaging