code: def create_ts1_generator_model(batch_size):
      generator = GeneratorReconstructor(batch_size)
  
      generator.sess.run(generator.init_opt)
  
      generator = TensorFlowGenerator(
          input_ph=generator.z_general_placeholder,
          model=generator.z_hats_recs,
          sess=generator.sess,
      )
  
      return generator
  
file_path: adversarial-robustness-toolbox/examples/get_started_inverse_gan.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import numpy
  import tensorflow
  from art.estimators.classification import TensorFlowClassifier
  from art.defences.preprocessor.inverse_gan import InverseGAN
  from art.estimators.encoding.tensorflow import TensorFlowEncoder
  from art.estimators.generation.tensorflow import TensorFlowGenerator
  from art.utils import load_mnist
  from art.attacks.evasion import FastGradientMethod
  from examples.inverse_gan_author_utils import EncoderReconstructor, GeneratorReconstructor
label_desc: Use image node_id 3 for calling a global function with example usage: create_ts1_generator_model(batch_size) and returns: generator