class_docstr: Collector represents the Prometheus Collector object
class_docstr_tok: ["Collector","represents","the","Prometheus","Collector","object"]
code: def __init__(self, options=Options(), view_name_to_data_map=None):
      if view_name_to_data_map is None:
          view_name_to_data_map = {}
      self._options = options
      self._registry = options.registry
      self._view_name_to_data_map = view_name_to_data_map
      self._registered_views = {}
  
imports: import re
  from prometheus_client import start_http_server
  from prometheus_client.core import REGISTRY, CounterMetricFamily, GaugeMetricFamily, HistogramMetricFamily, UnknownMetricFamily
  from opencensus.common.transports import sync
  from opencensus.stats import aggregation_data
  from opencensus.stats import base_exporter
  import logging
label_desc: Use image node_id 1 to create a new Collector object from inherited base classes: object with example: obj = Collector(options, view_name_to_data_map)