def METHOD_NAME(
        self, namespace, name, start, end, period, stat_type, stats, dimensions=None,
        error_code=None):
    expected_params = {
        'Namespace': namespace, 'MetricName': name, 'StartTime': start,
        'EndTime': end, 'Period': period, 'Statistics': [stat_type]}
    if dimensions is not None:
        expected_params['Dimensions'] = dimensions
    response = {
        'Label': name,
        'Datapoints': [{stat_type: stat} for stat in stats]
    }
    self._stub_bifurcator(
        'get_metric_statistics', expected_params, response, error_code=error_code)