class_docstr: Abstract class for generators.
class_docstr_tok: ["Abstract","class","for","generators","."]
docstr: Closes the TF session.
  
  If the session was already closed, this is a no-op.
docstr_tok: ["Closes","the","TF","session",".","If","the","session","was","already","closed",",","this","is","a","no-op","."]
code: def close(self):
      """Closes the TF session.
  
      If the session was already closed, this is a no-op.
      """
      if self._initialized:
          self._model.close()
          self._initialized = False
  
imports: import abc
  import os
  import tempfile
  from note_seq.protobuf import generator_pb2
  import tensorflow.compat.v1
label_desc: Use image node_id 6 for calling the BaseSequenceGenerator obj's underlying member method code with example usage: obj.close() without return types