class_docstr: Worker class used in all Samplers.
class_docstr_tok: ["Worker","class","used","in","all","Samplers","."]
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.
  
      """
  
file_path: garage/src/garage/sampler/worker.py
imports: import abc
label_desc: Use image node_id 7 for calling the Worker obj's underlying member method code with example usage: obj.collect_episode() without return types