class_docstr: Abstract class for generators.
class_docstr_tok: ["Abstract","class","for","generators","."]
docstr: When used as a context manager, initializes the TF session.
docstr_tok: ["When","used","as","a","context","manager",",","initializes","the","TF","session","."]
code: def __enter__(self):
      """When used as a context manager, initializes the TF session."""
      self.initialize()
      return self
  
imports: import abc
  import os
  import tempfile
  from note_seq.protobuf import generator_pb2
  import tensorflow.compat.v1
label_desc: Use image node_id 7 for calling the BaseSequenceGenerator obj's underlying member method code with example usage: obj.__enter__() and returns: self