code: def generate_image(*, size: int) -> Image:
      """generate image of size in bytes"""
      width = int(
          sqrt(size / 3)
      )  # 3 bytes per one pixel in square image
      random_numbers = numpy.random.rand(width, width, 3) * 255
      return Image.fromarray(random_numbers.astype("uint8")).convert(
          "RGB"
      )
  
imports: import io
  import os
  import random
  import string
  import tempfile
  from contextlib import contextmanager
  from datetime import datetime
  from math import sqrt
  from time import perf_counter
  import numpy
  from attr import dataclass
  from PIL import Image
  from PIL.PngImagePlugin import PngImageFile
  import neptune
  from neptune.internal.container_type import ContainerType
  from tests.e2e.exceptions import MissingEnvironmentVariable
label_desc: Use image node_id 5 for calling a global function with example usage: generate_image() and returns: Image