code: def rand(
      *size: int, generator: torch.Generator, device: torch.device
  ) -> torch.FloatTensor:
      """Wrap generating random numbers with a generator and given device."""
      return torch.rand(*size, generator=generator).to(device=device)
  
imports: import importlib
  import unittest
  import torch
label_desc: Use image node_id 1 for calling a global function with example usage: rand() and returns: torch