def METHOD_NAME(data, num_layers, bn_size, growth_rate, index):
    """Makes a block of dense layers of the specified size."""
    layer_out = data
    blocks = []
    for i in range(num_layers):
        layer_out = _make_dense_layer(layer_out, growth_rate, bn_size, f"{index}_{i}")
        blocks.append(layer_out)
    block_out = relay.concatenate(blocks, 1)
    return block_out