def METHOD_NAME(self):
    dim = self.properties.dim.value
    # create a VolumePy representation
    volumerep = ivw.data.VolumePy(self.rng.random(
        (dim[2], dim[1], dim[0]), dtype=np.float32))
    # directly access volume data as numpy array via `volumerep.data`
    # create a Volume from the representation
    volume = ivw.data.Volume(volumerep)
    volume.basis = ivw.glm.mat3(1)
    volume.offset = ivw.glm.vec3(-0.5, -0.5, -0.5)
    volume.dataMap.dataRange = ivw.glm.dvec2(0.0, 1.0)
    volume.dataMap.valueRange = ivw.glm.dvec2(0.0, 1.0)
    self.outport.setData(volume)