class_docstr: Collector represents the Prometheus Collector object
class_docstr_tok: ["Collector","represents","the","Prometheus","Collector","object"]
docstr: register_view will create the needed structure
  in order to be able to sent all data to Prometheus
docstr_tok: ["register_view","will","create","the","needed","structure","in","order","to","be","able","to","sent","all","data","to","Prometheus"]
code: def register_view(self, view):
      """register_view will create the needed structure
      in order to be able to sent all data to Prometheus
      """
      v_name = get_view_name(self.options.namespace, view)
  
      if v_name not in self.registered_views:
          desc = {
              "name": v_name,
              "documentation": view.description,
              "labels": list(map(sanitize, view.columns)),
              "units": view.measure.unit,
          }
          self.registered_views[v_name] = desc
  
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 6 for calling the Collector obj's underlying member method code with example usage: obj.register_view(view) without return types