'Generates a sequence from the model based on sequence and options.
Also initializes the TF graph if not yet initialized.
Args:
input_sequence: An input NoteSequence to base the generation on.
generator_options: A GeneratorOptions proto with options to use for
generation.
Returns:
The generated NoteSequence proto.'

def generate(self, input_sequence, generator_options):

    self.initialize()
    return self._generate(input_sequence, generator_options)
