code: def meshgrid_from_sizes(x, y, dim=0):
      a = torch.arange(x.size(dim), device=x.device)
      b = torch.arange(y.size(dim), device=y.device)
      return torch.meshgrid(a, b, indexing="ij")
  
imports: import math
  import numpy
  import torch
  from .None import common_functions
label_desc: Use image node_id 2 for calling a global function with example usage: meshgrid_from_sizes(x, y, dim) and returns: torch