def get_metric_by_name(name: str) -> Callable[..., Any]:
if name not in _REGISTRY:<EOL><INDENT>raise ConfigError(f'<STR_LIT>')<EOL><DEDENT>return fn_from_str(_REGISTRY[name])<EOL>
Returns a metric callable with a corresponding name.