code: def make_optimizer(optimizer, args):
      if optimizer is None:
          return tf.train.AdamOptimizer(0.05)
      elif callable(optimizer):
          return optimizer(*args)
      elif isinstance(optimizer, tf.train.Optimizer):
          return optimizer
      else:
          raise (
              "Could not convert optimizer argument to usable optimizer. "
              "Needs to be one of None, function from (graph, sess) to "
              "optimizer, or tf.train.Optimizer instance."
          )
  
file_path: lucid/lucid/optvis/render.py
imports: from __future__ import absolute_import, division, print_function
  from future.standard_library import install_aliases
  from builtins import range
  import numpy
  import tensorflow
  import logging
  from lucid.optvis import objectives, param, transform
  from lucid.misc.io import show
  from lucid.misc.redirected_relu_grad import redirected_relu_grad, redirected_relu6_grad
  from lucid.misc.gradient_override import gradient_override_map
label_desc: Use image node_id 6 for calling a global function with example usage: make_optimizer(optimizer, args) and returns: tf, optimizer, optimizer