code: def ret_work(ret):
      fut = Future()
      fut.set_result(ret)
      return _create_work_from_future(fut)
  
imports: import torch.distributed
  from torch._C._distributed_c10d import _create_work_from_future, AllgatherOptions, AllreduceOptions, BarrierOptions, ReduceScatterOptions, BroadcastOptions, ScatterOptions, AllToAllOptions
  from torch.futures import Future
  from typing import List
  from torch import Tensor
label_desc: Use image node_id 1 for calling a global function with example usage: ret_work(ret) and returns: _create_work_from_future