Where is HPP gas piping required to have a fail safe rupture shut off valve installed when the sypply is from a source outside the building?

Where is HPP gas piping required to have a fail safe rupture shut off valve installed when the sypply is from a source outside the building?