Mike Nelson did fer sure.
One of my favorite shows as a kid.
Sea Hunt
He's under, and narrates the action, "I knew it was dangerous, but I had to get to the surface fast" for some forgotten reason.
So he slips off the tank, turns off the tank, mounts with the valve end down, and starts whacking at said valve with the butt of his knife, and "rockets" to the surface.
"Dangerous"? Yes. Stupid. Yes. Doable? Probably not.
I guess it didn't occur to the writers to have him simply yank on the emergency CO2 inflator on the buoyancy compensator if he potentially wanted to injure himself that way.