code: def assert_image_reasonable(image):
      """Check that an image is reasonable.
  
      The given image is checked to not be completely black or white.
  
      Parameters:
      -----------
      image : (h, w, 4) ndarray or 'screenshot'
          The test result to check
      """
      if isinstance(image, str) and image == "screenshot":
          image = _screenshot(alpha=True)
  
      # check dimensions
      assert image.ndim == 3
      assert image.shape[2] == 4
  
      # check white or black
      assert image[..., :3].max() > 0
      assert image[..., :3].min() < 255
  
imports: import time
  import os
  import sys
  import inspect
  import base64
  from subprocess import check_call, CalledProcessError
  import numpy
  from http.client import HTTPConnection
  from urllib.parse import urlencode
  from ..None import scene, config
  from ..io import read_png, write_png
  from ..gloo.util import _screenshot
  from ..util import run_subprocess
  from .None import IS_CI
label_desc: Use image node_id 3 for calling a global function with example usage: assert_image_reasonable(image) without return types