DEADCODE: removed get_gradient_id_shape(...) function