Text this: The equivalence between the Hamiltonian and Lagrangian formulations for the parametrization-invariant theories