code: def test_diversity(inceptionv1):
      # TODO: is the sign correctly defined on this objective? It seems I need to invert it.
      objective = objectives.diversity("mixed4a_pre_relu")
      assert_gradient_ascent(-1 * objective, inceptionv1, batch=2)
  
imports: from __future__ import absolute_import, division, print_function
  import pytest
  import tensorflow
  import numpy
  from lucid.optvis import objectives, param, render, transform
  from lucid.modelzoo.vision_models import InceptionV1
label_desc: Use image node_id 17 for calling a global function with example usage: test_diversity(inceptionv1) without return types