code: def _record(self, value=1, tags: Optional[Dict[str, str]] = None):
      if self._metric:
          if tags is not None:
              tags.update(self._tags)
          else:
              tags = self._tags
          self._metric.labels(**tags).set(value)
  
imports: import os
  import socket
  from typing import Optional, Dict
  from ....utils import lazy_import
  from ..metric import AbstractMetric, AbstractCounter, AbstractGauge, AbstractMeter, AbstractHistogram
label_desc: Use image node_id 2 for calling the PrometheusMetricMixin obj's underlying member method code with example usage: obj._record(value, tags) without return types