code: def _check_type(variable, expected_type, helper_text):
      if not isinstance(variable, expected_type):
          raise merrors.MetricsCacheTypeError(helper_text)
  
imports: import abc
  import os
  import ts.metrics.metric_cache_errors
  from ts.metrics.dimension import Dimension
  from ts.metrics.metric_abstract import MetricAbstract
  from ts.metrics.metric_type_enum import MetricTypes
label_desc: Use image node_id 12 for calling the MetricCacheAbstract obj's underlying member method code with example usage: obj._check_type(variable, expected_type, helper_text) without return types