code: def _resolve_metric(self, original_metric_name, metrics_to_collect, prefix=""):
          
  
          submit_method = (
              metrics_to_collect[original_metric_name][0]
              if isinstance(metrics_to_collect[original_metric_name], tuple)
              else metrics_to_collect[original_metric_name]
          )
          metric_name = (
              metrics_to_collect[original_metric_name][1]
              if isinstance(metrics_to_collect[original_metric_name], tuple)
              else original_metric_name
          )
  
          return submit_method, self._normalize(metric_name, submit_method, prefix)
docs: Return the submit method and the metric name to use.
  
          The metric name is defined as follow:
          * If available, the normalized metric name alias
          * (Or) the normalized original metric name