[Fix] Get the input_tensor back to optional in the export() function
Context
This previous MR made the input tensor mandatory in export()
helper function call as it made it easier to handle some steps.
However as it broke some export scripts, this MR brings the input tensor as optional, raising warning and errors for the concerned steps within the export()
function.