Has anyone made a "Strech Contrast" composite node, yet?

I’m trying to make a “Strech Contrast” node for Blender’s compositor. I’ve got the node setup, but the function itself is not done. Was just wondering if anyone happened to make one, already.

What does it do? The title doesn’t seem clear to me, is it just a curve?