code: def blend(images1, images2, alpha):
      """
      Blend two images with a given weight alpha.
      Args:
          images1 (tensor): the first images to be blended, the dimension is
              `num frames` x `channel` x `height` x `width`.
          images2 (tensor): the second images to be blended, the dimension is
              `num frames` x `channel` x `height` x `width`.
          alpha (float): the blending weight.
      Returns:
          (tensor): blended images, the dimension is
              `num frames` x `channel` x `height` x `width`.
      """
      return images1 * alpha + images2 * (1 - alpha)
  
imports: import logging
  import math
  import numpy
  import random
  import torch
  import torchvision
  import torchvision.transforms.functional
  from PIL import Image, ImageFilter
  from scipy.ndimage import gaussian_filter
  from torchvision import transforms
  from .rand_augment import rand_augment_transform
  from .random_erasing import RandomErasing
label_desc: Use image node_id 8 for calling a global function with example usage: blend(images1, images2, alpha) and returns: unknown