code: def _meshgrid(self, x, y, row_major=True):
      xx = x.repeat(len(y))
      yy = y.view(-1, 1).repeat(1, len(x)).view(-1)
      if row_major:
          return xx, yy
      else:
          return yy, xx
  
imports: import torch
  from .builder import ANCHOR_GENERATORS
label_desc: Use image node_id 1 for calling the PointGenerator obj's underlying member method code with example usage: obj._meshgrid(x, y, row_major) and returns: xx,  yy, yy,  xx