code: def population_chart_to_png_extractor(impact_report, component_metadata):
      
      context = {}
  
      population_donut_path = impact_report.component_absolute_output_path(
          'population-chart')
  
      if not population_donut_path:
          return context
  
      context['filepath'] = population_donut_path
  
      return context
docs: Creating population donut chart.
  
      :param impact_report: the impact report that acts as a proxy to fetch
          all the data that extractor needed
      :type impact_report: safe.report.impact_report.ImpactReport
  
      :param component_metadata: the component metadata. Used to obtain
          information about the component we want to render
      :type component_metadata: safe.report.report_metadata.
          ReportComponentsMetadata
  
      :return: context for rendering phase
      :rtype: dict
  
      .. versionadded:: 4.0