class_docstr: The :class:`ImagingCallback` provides a generic interface for callbacks which yield images that should be sent to
  a file, tensorboard, visdom etc. without needing bespoke code. This allows the user to easily define custom
  visualisations by only writing the code to produce the image.
  
  Args:
      transform (callable, optional): A function/transform that  takes in a Tensor and returns a transformed version.
          This will be applied to the image before it is sent to output.
class_docstr_tok: ["The",":","class",":","`","ImagingCallback","`","provides","a","generic","interface","for","callbacks","which","yield","images","that","should","be","sent","to","a","file",",","tensorboard",",","visdom","etc",".","without","needing","bespoke","code",".","This","allows","the","user","to","easily","define","custom","visualisations","by","only","writing","the","code","to","produce","the","image",".","Args",":","transform","(","callable",",","optional",")",":","A","function\/transform","that","takes","in","a","Tensor","and","returns","a","transformed","version",".","This","will","be","applied","to","the","image","before","it","is","sent","to","output","."]
docstr: Show images from this callback with pyplot
  
  Args:
      title (str or None): If not None, plt.title will be called with the given string
      show (bool): If True (default), show will be called after each image is plotted
      index (int or list or None): If not None, only apply the handler on this index / list of indices
  
  Returns:
      ImagingCallback: self
docstr_tok: ["Show","images","from","this","callback","with","pyplot","Args",":","title","(","str","or","None",")",":","If","not","None",",","plt.title","will","be","called","with","the","given","string","show","(","bool",")",":","If","True","(","default",")",",","show","will","be","called","after","each","image","is","plotted","index","(","int","or","list","or","None",")",":","If","not","None",",","only","apply","the","handler","on","this","index","\/","list","of","indices","Returns",":","ImagingCallback",":","self"]
code: def to_pyplot(self, title=None, show=True, index=None):
      """Show images from this callback with pyplot
  
      Args:
          title (str or None): If not None, plt.title will be called with the given string
          show (bool): If True (default), show will be called after each image is plotted
          index (int or list or None): If not None, only apply the handler on this index / list of indices
  
      Returns:
          ImagingCallback: self
      """
      return self.with_handler(
          _to_pyplot(title=title, show=show), index=index
      )
  
imports: import torchbearer
  from torchbearer import Callback
  import torch
label_desc: Use image node_id 9 for calling the ImagingCallback obj's underlying member method code with example usage: obj.to_pyplot(title, show, index) and returns: self