code: def torch_script(obj):
      """TorchScript the given function or Module"""
      buffer = io.BytesIO()
      torch.jit.save(torch.jit.script(obj), buffer)
      buffer.seek(0)
      return torch.jit.load(buffer)
  
label_desc: Use image node_id 1 for calling a global function with example usage: torch_script(obj) and returns: torch