def build_dimension_param(self, dimension, params):
        for dim_name in dimension:
            dim_value = dimension[dim_name]
            if isinstance(dim_value, basestring):
                dim_value = [dim_value]
            for i, value in enumerate(dim_value):
                params['Dimensions.member.%d.Name' % (i+1)] = dim_name
                params['Dimensions.member.%d.Value' % (i+1)] = value
dataset/ETHPy150Open radlab/sparrow/deploy/third_party/boto-2.1.1/boto/ec2/cloudwatch/__init__.py/CloudWatchConnection.build_dimension_param/original