code: def create_colour_temp_image(size, file_format):
      tmpdir = tempfile.mkdtemp()
      tmp = tempfile.NamedTemporaryFile(
          dir=tmpdir, suffix=".JPEG", delete=False
      )
  
      im = Image.fromarray(np.uint8(np.random.rand(800, 800, 3) * 255))
      im.save(tmp.name, file_format)
  
      return tmp, tmpdir
  
file_path: Augmentor/tests/util_funcs.py
imports: import os
  import sys
  import tempfile
  import io
  import shutil
  import numpy
  from PIL import Image
label_desc: Use image node_id 1 for calling a global function with example usage: create_colour_temp_image(size, file_format) and returns: tmp,  tmpdir