code: def create_deterministic_image(shape, offset: int = 0):
      img = create_input(shape, offset).numpy()
      img = ((255.0 / img.max()) * img).astype(np.uint8)
      res = img.astype(np.float32) / 255
      return res
  
file_path: NeuralCompression/tests/utils.py
imports: from pathlib import Path
  from typing import Optional
  import numpy
  import torch
  from numpy.random import Generator
  from PIL import Image
label_desc: Use image node_id 2 for calling a global function with example usage: create_deterministic_image(shape, offset) and returns: res