Consolidate usage on torch::jit::toPyObject in RPC request_callback (#37249)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/37249
Test Plan: Imported from OSS
Differential Revision: D21234990
Pulled By: mrshenli
fbshipit-source-id: d07210151342bd2ad12d1364d9f22817ee59b0c2