code: def create_init_image(self, h, w):
      image_array = numpy.random.rand(h, w, 3) * 255
      image = Image.fromarray(image_array.astype("uint8")).convert(
          "RGB"
      )
      return helpers.get_input_image_tensor(image)
  
file_path: generative-models/tests/inference/test_inference.py
imports: import numpy
  from PIL import Image
  import pytest
  from pytest import fixture
  import torch
  from typing import Tuple
  from sgm.inference.api import model_specs, SamplingParams, SamplingPipeline, Sampler, ModelArchitecture
  import sgm.inference.helpers
label_desc: Use image node_id 3 for calling the TestInference obj's underlying member method code with example usage: obj.create_init_image(h, w) and returns: helpers