def from_voxels(voxels):
dimensions = len(voxels[<NUM_LIT:0>])<EOL>for d in range(len(dimensions)):<EOL><INDENT>size.append(max([i[d] for i in voxels]))<EOL><DEDENT>result = numpy.zeros(dimensions)<EOL>for v in voxels:<EOL><INDENT>result[v] = <NUM_LIT:1><EOL><DEDENT>return result<EOL>
Converts a voxel list to an ndarray.

Arguments:
    voxels (tuple[]): A list of coordinates indicating coordinates of
        populated voxels in an ndarray.

Returns:
    numpy.ndarray The result of the transformation.