HF RL Explorer

Adding shape validation for add matrix to collection ( 4258)

Adding shape validation for add matrix to collection ( 4258): a task in lifesci-single-cell-spatial-swe-envs-nocap (Harbor dataset). Title: Adding shape validation for add matrix to collection

The task

**Title:** Adding shape validation for add_matrix_to_collection

Part of scalingX/lifesci-single-cell-spatial-swe-envs-nocap.