What is this part

I believe it to be aftermarket. What I am not sure. Where does the other end go. As stated before might be some sort of trans cooler. Looks like an A/C dryer to me.
Frank