[4/N] Reorder VariableBuilder._wrap (#111409)
Reorganize the priority inside of ```VariableBuilder._wrap```:
* is_allowed returning True -> TorchVariable
* skipfiles.check returning True -> SkipFilesVariable
* UserFunctionVariable/UserMethodVariable (This is means both is_allowed and skipfiles.check returning False, then inlining by default)
* UserDefinedClassVariable
* UserDefinedObjectVariable (the ultimate default value)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/111409
Approved by: https://github.com/jansel