code: def run_reports(reportlets_dir, out_dir, subject_label, run_uuid, config=None,
                  packagename=None):
      
      report = Report(Path(reportlets_dir), out_dir, run_uuid, config=config,
                      subject_id=subject_label, packagename=packagename)
      return report.generate_report()
docs: Runs the reports
  
      .. testsetup::
  
      >>> from shutil import copytree
      >>> from tempfile import TemporaryDirectory
      >>> new_path = Path(__file__).resolve().parent.parent
      >>> test_data_path = new_path / 'data' / 'tests' / 'work'
      >>> tmpdir = TemporaryDirectory()
      >>> os.chdir(tmpdir.name)  #noqa
      >>> testdir = Path().resolve()
      >>> data_dir = copytree(test_data_path, testdir / 'work')
      >>> (testdir / 'fmriprep').mkdir(parents=True, exist_ok=True)
  
      .. doctest::
  
      >>> run_reports(str(testdir / 'work' / 'reportlets'),
      ...             str(testdir / 'out'), '01', 'madeoutuuid')
      0
  
      .. testcleanup::
  
      >>> tmpdir.cleanup()