code: def analysis_summary_report(feature, parent):
      
      _ = feature, parent  # NOQA
      project_context_scope = QgsExpressionContextUtils.projectScope(
          QgsProject.instance())
      key = provenance_layer_analysis_impacted['provenance_key']
      if not project_context_scope.hasVariable(key):
          return None
  
      analysis_dir = dirname(project_context_scope.variable(key))
      return get_impact_report_as_string(analysis_dir)
docs: Retrieve an HTML table report of current selected analysis.