class_docstr: Base class for PyStan plugins.
  
  Plugin developers should create a class which subclasses `PluginBase`.
  This class must be referenced in their package's entry points section.
docstr: Called with Fit instance when sampling has finished.
  
  The plugin can report information about the samples
  contained in the Fit object. It may also add to or
  modify the Fit instance.
  
  If the plugin only analyzes the contents of `fit`,
  it must return the `fit`.
  
  Argument:
      fit: Fit instance.
  
  Returns:
      The Fit instance.
docstr_tok: ["Called","with","Fit","instance","when","sampling","has","finished",".","The","plugin","can","report","information","about","the","samples","contained","in","the","Fit","object",".","It","may","also","add","to","or","modify","the","Fit","instance",".","If","the","plugin","only","analyzes","the","contents","of","`","fit","`",",","it","must","return","the","`","fit","`",".","Argument",":","fit",":","Fit","instance",".","Returns",":","The","Fit","instance","."]
code: def on_post_sample(self, fit: stan.fit.Fit) -> stan.fit.Fit:
      """Called with Fit instance when sampling has finished.
  
      The plugin can report information about the samples
      contained in the Fit object. It may also add to or
      modify the Fit instance.
  
      If the plugin only analyzes the contents of `fit`,
      it must return the `fit`.
  
      Argument:
          fit: Fit instance.
  
      Returns:
          The Fit instance.
      """
      return fit
  
file_path: pystan/stan/plugins.py
imports: import abc
  from typing import Generator
  import pkg_resources
  import stan.fit
label_desc: Use image node_id 1 for calling the PluginBase obj's underlying member method code with example usage: obj.on_post_sample(fit) and returns: fit