The function confirming the input variables fit the requirements of the tensorReg2D function.
Useful links