is this a filter??

Ive seen that part.Ima racking my brain but coming up short. Notice the vertical orientation.
Ima guessing roll-over-shut -off valve?if its in the fuel supply line. Or, if its in a vent line, a pressure relief valve/anti-siphon device.
My powers of recall are failing me on this one. I know Ive seen it before but........