code: def generate(store, report_format, path):
      
      success = False
      if report_format in ['html']:
          rendered_content = {
              'html': generate_html
          }[report_format](store)
  
          if not os.path.isdir(path):
              os.makedirs(path)
  
          if rendered_content is not None:
              # writing report file
              with open(os.path.join(path, 'pipeline.' + report_format), 'w') as handle:
                  handle.write(rendered_content)
              success = True
      else:
          Logger.get_logger(__name__).error("Unknown report format %s", report_format)
      return success
docs: Generate file in defined format representing the report of pipeline(s).
  
      Args:
          store (Store): report data.
          report_format (str): currently "html" is supported only.
          path (str): path where to write the report to. Missing sub folders will be created.