docstr: Create a new metric and add into cache
  
  Parameters
  ----------
  metric_name str
      Name of metric
  
  metric_type MetricTypes
      Type of metric Counter, Gauge, Histogram
  
  Returns
  -------
  Metrics object or MetricsCacheKeyError if not found
docstr_tok: ["Create","a","new","metric","and","add","into","cache","Parameters","--","--","--","--","--","metric_name","str","Name","of","metric","metric_type","MetricTypes","Type","of","metric","Counter",",","Gauge",",","Histogram","Returns","--","--","--","-","Metrics","object","or","MetricsCacheKeyError","if","not","found"]
code: def get_metric(
      self,
      metric_name: str,
      metric_type: MetricTypes = MetricTypes.COUNTER,
  ) -> MetricAbstract:
      """
      Create a new metric and add into cache
  
      Parameters
      ----------
      metric_name str
          Name of metric
  
      metric_type MetricTypes
          Type of metric Counter, Gauge, Histogram
  
      Returns
      -------
      Metrics object or MetricsCacheKeyError if not found
      """
      pass
  
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 14 for calling the MetricCacheAbstract obj's underlying member method code with example usage: obj.get_metric(metric_name, metric_type) without return types