code: def get_metric(self, pronac, metric):
          
  
          assert isinstance(metric, str)
          assert '.' in metric, 'metric must declare a namespace'
  
          try:
              func = self._metrics[metric]
              return func(pronac, self._data)
          except KeyError:
              raise InvalidMetricError('metric does not exist')
docs: Get metric for the project with the given pronac number.
  
          Usage:
              >>> metrics.get_metric(pronac_id, 'finance.approved_funds')