def METHOD_NAME(sid):
    shape = HWR.beamline.sample_view.camera.get_shape(sid)
    hm = {}
    cm = {}
    if shape:
        from random import random
        for i in range(1, shape.num_rows * shape.num_cols + 1):
            hm[i] = [
                i,
                [
                    int(random() * 255),
                    int(random() * 255),
                    int(random() * 255),
                    int(random()),
                ],
            ]
        for i in range(1, shape.num_rows * shape.num_cols + 1):
            cm[i] = [
                i,
                [
                    int(random() * 255),
                    int(random() * 255),
                    int(random() * 255),
                    int(random()),
                ],
            ]
    res = {"heatmap": hm, "crystalmap": cm}
    HWR.beamline.sample_view.camera.set_grid_data(sid, res)
    signals.grid_result_available(to_camel(shape.as_dict()))
    return Response(status=200)