code: def d2_image_augment(image: Tensor) -> Tensor:
      """
      Augment input tensor using D2 symmetry group
      Args:
          image: Tensor of [B,C,H,W] shape
  
      Returns:
          Tensor of [B * 8, C, H, W] shape with:
              - Original tensor
              - Original tensor rotated by 180 degrees
              - Horizontally-flipped tensor
              - Vertically-flipped tensor
  
      """
      return torch.cat(
          [
              image,
              F.torch_fliplr(image),
              F.torch_flipud(image),
              F.torch_fliplr(F.torch_flipud(image)),
          ],
          dim=0,
      )
  
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 15 for calling a global function with example usage: d2_image_augment(image) and returns: torch