class_docstr: Mixin to enable reporting for Nipype interfaces
code: def _post_run_hook(self, runtime):
      runtime = super()._post_run_hook(runtime)
  
      # leave early if there's nothing to do
      if not self.generate_report:
          return runtime
  
      self._out_report = self.inputs.out_report
      if not os.path.isabs(self._out_report):
          self._out_report = os.path.abspath(
              os.path.join(runtime.cwd, self._out_report)
          )
  
      self._generate_report()
  
      return runtime
  
file_path: nipype/nipype/interfaces/mixins/reporting.py
imports: import os
  from abc import abstractmethod
  from ...None import logging
  from ..base import File, BaseInterface, BaseInterfaceInputSpec, TraitedSpec
label_desc: Use image node_id 2 for calling the ReportCapableInterface obj's underlying member method code with example usage: obj._post_run_hook(runtime) and returns: runtime, runtime