The snake appeared to be headed onto the busy street when it was found, an animal control officer said.
A frightened animal trapped in a tight engine compartment can pose risks.