code: def _shear_x(video: torch.Tensor, factor: float, **kwargs):
      """
      Shear the video along the horizontal axis.
  
      Args:
          video (torch.Tensor): Video tensor with shape (T, C, H, W).
          factor (float): How much to shear along the horizontal axis using the affine
              matrix.
      """
      _check_fill_arg(kwargs)
      translation_offset = video.size(-2) * factor / 2
      return affine(
          video,
          [1, factor, translation_offset, 0, 1, 0],
          fill=kwargs["fill"],
          interpolation="bilinear",
      )
  
imports: from typing import Any, Callable, Dict, List, Optional, Tuple, Union
  import torch
  import torchvision
  from torch import Tensor
  from torchvision.transforms.functional import InterpolationMode
label_desc: Use image node_id 12 for calling a global function with example usage: _shear_x(video, factor) and returns: affine