code: def new_stats_exporter(option):
      
      if option.namespace == "":
          raise ValueError("Namespace can not be empty string.")
  
      collector = new_collector(option)
  
      exporter = PrometheusStatsExporter(options=option,
                                         gatherer=option.registry,
                                         collector=collector)
      return exporter
docs: new_stats_exporter returns an exporter
      that exports stats to Prometheus.