code: def hflip(input: Tensor) -> Tensor:
      r"""Horizontally flip a tensor image or a batch of tensor images.
  
      .. image:: _static/img/hflip.png
  
      Input must be a tensor of shape (C, H, W) or a batch of tensors :math:`(*, C, H, W)`.
  
      Args:
          input: input tensor.
  
      Returns:
          The horizontally flipped image tensor.
      """
      return input.flip(-1).contiguous()
  
file_path: kornia/kornia/geometry/transform/flips.py
imports: import torch
  from kornia.core import Module, Tensor
label_desc: Use image node_id 2 for calling a global function with example usage: hflip(input) and returns: input