Check type on code_paths parameter when saving model (#2325)
Check type on code_paths parameter when saving model (#2325)

* handle error while giving pytorch model save

* refactor code

mlflow/mlflow,mlflow/mlflow,mlflow/mlflow,mlflow/mlflow,mlflow/mlflow,mlflow/mlflow,mlflow/mlflow