def METHOD_NAME(session_factory, table_name, start, end, period):
    metrics = local_session(session_factory).client('cloudwatch')
    values = {}
    for m in (
            "ConsumedReadCapacityUnits",
            "ConsumedWriteCapacityUnits",
            "ThrottledRequests",
            "ReadThrottleEvents",
            "WriteThrottleEvents",
            "ReturnedItemCount",
            "SuccessfulRequestLatency"
            #  "ReturnedRecordsCount"
    ):
        values[m.replace('Capacity', '')] = metrics.get_metric_statistics(
            Namespace="AWS/DynamoDB",
            Dimensions=[
                {'Name': 'TableName', 'Value': table_name}
            ],
            Statistics=["Average"],
            StartTime=start,
            EndTime=end,
            Period=period,
            MetricName=m)['Datapoints']
    return values