The AE138 is a surge arrestor for grounding the pipeline in the event of it being subject to a transient high voltage.
Installed to electrically earth equipment with Cathodic Protection fitted where it decouples the protected structure from the earthing system but allows safe passage to earth of transient electrical impulses.