code: def insert_image_data_embed(image, data):
      d = 3
      data_compressed = zlib.compress(
          json.dumps(data, cls=EmbeddingEncoder).encode(), level=9
      )
      data_np_ = np.frombuffer(data_compressed, np.uint8).copy()
      data_np_high = data_np_ >> 4
      data_np_low = data_np_ & 0x0F
  
      h = image.size[1]
      next_size = data_np_low.shape[0] + (
          h - (data_np_low.shape[0] % h)
      )
      next_size = next_size + ((h * d) - (next_size % (h * d)))
  
      data_np_low = np.resize(data_np_low, next_size)
      data_np_low = data_np_low.reshape((h, -1, d))
  
      data_np_high = np.resize(data_np_high, next_size)
      data_np_high = data_np_high.reshape((h, -1, d))
  
      edge_style = (
          list(data["string_to_param"].values())[0]
          .cpu()
          .detach()
          .numpy()
          .tolist()[0][:1024]
      )
      edge_style = (
          np.abs(edge_style) / np.max(np.abs(edge_style)) * 255
      ).astype(np.uint8)
  
      data_np_low = style_block(data_np_low, sequence=edge_style)
      data_np_low = xor_block(data_np_low)
      data_np_high = style_block(
          data_np_high, sequence=edge_style[::-1]
      )
      data_np_high = xor_block(data_np_high)
  
      im_low = Image.fromarray(data_np_low, mode="RGB")
      im_high = Image.fromarray(data_np_high, mode="RGB")
  
      background = Image.new(
          "RGB",
          (
              image.size[0] + im_low.size[0] + im_high.size[0] + 2,
              image.size[1],
          ),
          (0, 0, 0),
      )
      background.paste(im_low, (0, 0))
      background.paste(image, (im_low.size[0] + 1, 0))
      background.paste(
          im_high, (im_low.size[0] + 1 + image.size[0] + 1, 0)
      )
  
      return background
  
imports: import base64
  import json
  import warnings
  import numpy
  import zlib
  from PIL import Image, ImageDraw
  import torch
label_desc: Use image node_id 6 for calling a global function with example usage: insert_image_data_embed(image, data) and returns: background