code: def test_image_sample():
      shape = (1, 32, 32, 3)
      with tf.Session() as sess:
          image_t = image_sample(shape)
  
          tf.global_variables_initializer().run()
          image1, image2 = [sess.run([image_t])[0] for _ in range(2)]
      distance = np.mean(np.absolute(image1 - image2))
      assert distance > 0
  
imports: from __future__ import absolute_import, division, print_function
  import pytest
  import numpy
  import tensorflow
  from lucid.optvis.param.random import image_sample
label_desc: Use image node_id 1 for calling a global function with example usage: test_image_sample() without return types