Dirac nodal lines in the quasi-one-dimensional ternary telluride TaPtTe$_5$