def batch_get_item(self, table_name, keys, consistent_read=None, return_consumed_capacity=None, attributes_to_get=None):
    '\n        Performs the batch get item operation\n        '
    operation_kwargs = {REQUEST_ITEMS: {table_name: {}}}
    args_map = {}
    name_placeholders = {}
    if consistent_read:
        args_map[CONSISTENT_READ] = consistent_read
    if return_consumed_capacity:
        operation_kwargs.update(self.get_consumed_capacity_map(return_consumed_capacity))
    if (attributes_to_get is not None):
        projection_expression = create_projection_expression(attributes_to_get, name_placeholders)
        args_map[PROJECTION_EXPRESSION] = projection_expression
    if name_placeholders:
        args_map[EXPRESSION_ATTRIBUTE_NAMES] = self._reverse_dict(name_placeholders)
    operation_kwargs[REQUEST_ITEMS][table_name].update(args_map)
    keys_map = {KEYS: []}
    for key in keys:
        keys_map[KEYS].append(self.get_item_attribute_map(table_name, key)[ITEM])
    operation_kwargs[REQUEST_ITEMS][table_name].update(keys_map)
    try:
        return self.dispatch(BATCH_GET_ITEM, operation_kwargs)
    except BOTOCORE_EXCEPTIONS as e:
        raise GetError('Failed to batch get items: {0}'.format(e), e)
Performs the batch get item operation
def batch_get_item(self, table_name, keys, consistent_read=None, return_consumed_capacity=None, attributes_to_get=None):
    '\n        \n        '
    operation_kwargs = {REQUEST_ITEMS: {table_name: {}}}
    args_map = {}
    name_placeholders = {}
    if consistent_read:
        args_map[CONSISTENT_READ] = consistent_read
    if return_consumed_capacity:
        operation_kwargs.update(self.get_consumed_capacity_map(return_consumed_capacity))
    if (attributes_to_get is not None):
        projection_expression = create_projection_expression(attributes_to_get, name_placeholders)
        args_map[PROJECTION_EXPRESSION] = projection_expression
    if name_placeholders:
        args_map[EXPRESSION_ATTRIBUTE_NAMES] = self._reverse_dict(name_placeholders)
    operation_kwargs[REQUEST_ITEMS][table_name].update(args_map)
    keys_map = {KEYS: []}
    for key in keys:
        keys_map[KEYS].append(self.get_item_attribute_map(table_name, key)[ITEM])
    operation_kwargs[REQUEST_ITEMS][table_name].update(keys_map)
    try:
        return self.dispatch(BATCH_GET_ITEM, operation_kwargs)
    except BOTOCORE_EXCEPTIONS as e:
        raise GetError('Failed to batch get items: {0}'.format(e), e)