@lru_cache(maxsize=<NUM_LIT>)<EOL>def resolve_metric(metric):
return resolve_metric_as_tuple(metric)[<NUM_LIT:1>]<EOL>
Resolve metric key to a given target.

:param metric: the metric name.
:type  metric: ``str``

:rtype: :class:`Metric`