The open head joints aren't a great way to drain the water that gets behind the wall but they are on the approved plans. The 4" perforated pipe is also an option on the approved plans but it is to drain through the wall at an end, not across a public way. In addition to that, a yard drain has been connected as well.
The pipe is a drain pipe behind a retaining wall. It is upside down as the holes should be facing down.