code: def _type_as_str(obj: Instrument) -> str:
      """
      Given an OpenTelemetry Instrument, returns the type of the instrument as a string.
  
      :param obj: An OTel Instrument or subclass
      :returns: The type() of the Instrument without all the nested class info
      """
      # type().__name__ will return something like: '_Counter',
      # this drops the leading underscore for cleaner logging.
  
      return type(obj).__name__[1:]
  
imports: from __future__ import annotations
  import datetime
  import logging
  import random
  import warnings
  from functools import partial
  from typing import TYPE_CHECKING, Callable, Iterable, Union
  from opentelemetry import metrics
  from opentelemetry.exporter.otlp.proto.http.metric_exporter import OTLPMetricExporter
  from opentelemetry.metrics import Observation
  from opentelemetry.sdk.metrics import MeterProvider
  from opentelemetry.sdk.metrics._internal.export import ConsoleMetricExporter, PeriodicExportingMetricReader
  from opentelemetry.sdk.resources import SERVICE_NAME, Resource
  from airflow.configuration import conf
  from airflow.metrics.protocols import Timer
  from airflow.metrics.validators import OTEL_NAME_MAX_LENGTH, AllowListValidator, ListValidator, get_validator, stat_name_otel_handler
label_desc: Use image node_id 5 for calling a global function with example usage: _type_as_str(obj) and returns: type