Defined in File autograd.h
Creates a new dual level and returns its index.
This level index should then be used to call into the other functions below. This API supports entering a new level before the previous one is exited. We call them nested forward AD levels. These can be used to compute higher order derivatives.