code: def _shear_x_impl(pil_img, level):
      """
      Shears the image along the horizontal axis with `level` magnitude.
      """
      max = 0.3
      level = scale_parameter(level, max, "float")
      if random.random() > 0.5:
          level = -level
      return pil_img.transform(
          pil_img.size, Image.AFFINE, (1, level, 0, 0, 1, 0)
      )
  
imports: import logging
  import random
  import nltk
  from PIL import Image, ImageEnhance, ImageOps
  from ..constants import AUTOMM, IMAGE, TEXT
label_desc: Use image node_id 6 for calling a global function with example usage: _shear_x_impl(pil_img, level) and returns: pil_img