code: def _autumn_process(tens: Tensor) -> Tensor:
      tens = to_tensor(tens, enforce_tensor=True)
      imshape = tens.shape
      tens = _hls(tens)
      cspace = tens.cspace
  
      step = 8
      aut_colors = [1, 5, 9, 11]
      col = aut_colors[random.randint(0, 3)]
  
      for i in range(0, imshape[1], step):
          for j in range(0, imshape[0], step):
              avg = np.average(tens[j : j + step, i : i + step, 0])
  
              if (
                  avg > 20
                  and avg < 100
                  and np.average(tens[j : j + step, i : i + step, 1])
                  < 100
              ):
                  tens[j : j + step, i : i + step, 0] = col
                  tens[j : j + step, i : i + step, 2] = 255
  
      return to_tensor(tens, cspace=cspace)
  
imports: import cv2
  import random
  import math
  import numpy
  from ..coreten import Tensor, to_tensor
  from ..annotations import Tuple, Union
  from ..color import to_hls, to_rgb, to_bgr, to_hsv, to_gray, to_lab
label_desc: Use image node_id 22 for calling a global function with example usage: _autumn_process(tens) and returns: to_tensor