class_docstr: Wrapper around another workers that initializes a TensorFlow Session.
class_docstr_tok: ["Wrapper","around","another","workers","that","initializes","a","TensorFlow","Session","."]
docstr: Collect the current episode, clearing the internal buffer.
  
  Returns:
      EpisodeBatch: Batch of sampled episodes. May be truncated if the
          episodes haven't completed yet.
docstr_tok: ["Collect","the","current","episode",",","clearing","the","internal","buffer",".","Returns",":","EpisodeBatch",":","Batch","of","sampled","episodes",".","May","be","truncated","if","the","episodes","have","n't","completed","yet","."]
code: def collect_episode(self):
      """Collect the current episode, clearing the internal buffer.
  
      Returns:
          EpisodeBatch: Batch of sampled episodes. May be truncated if the
              episodes haven't completed yet.
  
      """
      return self._inner_worker.collect_episode()
  
file_path: garage/src/garage/tf/samplers/worker.py
imports: import tensorflow
  from garage.sampler.worker import Worker
label_desc: Use image node_id 13 for calling the TFWorkerWrapper obj's underlying member method code with example usage: obj.collect_episode() and returns: self