code: def apply_watermark(self, images: np.array):
      # can't encode images that are smaller than 256
      if images.shape[-1] < 256:
          return images
  
      images = (255 * (images / 2 + 0.5)).transpose((0, 2, 3, 1))
  
      images = np.array(
          [self.encoder.encode(image, "dwtDct") for image in images]
      ).transpose((0, 3, 1, 2))
  
      np.clip(2 * (images / 255 - 0.5), -1.0, 1.0, out=images)
  
      return images
  
imports: import numpy
  from imwatermark import WatermarkEncoder
label_desc: Use image node_id 2 for calling the StableDiffusionXLWatermarker obj's underlying member method code with example usage: obj.apply_watermark(images) and returns: images, images