code: def bench_create_tensor_then_send_to_device(benchmark):
      device = torch.device("cuda:0")
  
      def create_tensor():
          return torch.rand((32, 50)).to(device)
  
      benchmark(create_tensor)
  
imports: import torch
  from allennlp.nn import util
  from allennlp.common.testing import requires_gpu
label_desc: Use image node_id 3 for calling a global function with example usage: bench_create_tensor_then_send_to_device(benchmark) and returns: torch