code: def __init__(self, name: str = WEIGHTED_EXAMPLE_COUNT_NAME):
      """Initializes weighted example count.
  
      Args:
        name: Metric name.
      """
  
      super().__init__(name=name)
  
imports: from tensorflow_model_analysis.metrics import example_count
  from tensorflow_model_analysis.metrics import metric_types
label_desc: Use image node_id 1 to create a new WeightedExampleCount object from inherited base classes: example_count with example: obj = WeightedExampleCount(name)