code: def _create_coordinate_tensor(tensor):
      axes = [
          torch.arange(tensor.size(i)) for i in range(2, tensor.dim())
      ]
      grids = meshgrid_ij(axes)
      coords = torch.stack(grids).to(
          device=tensor.device, dtype=tensor.dtype
      )
      return torch.stack(tensor.size(0) * [coords], dim=0)
  
file_path: MONAI/monai/networks/blocks/crf.py
imports: from __future__ import annotations
  import torch
  from torch.nn.functional import softmax
  from monai.networks.layers.filtering import PHLFilter
  from monai.networks.utils import meshgrid_ij
label_desc: Use image node_id 1 for calling a global function with example usage: _create_coordinate_tensor(tensor) and returns: torch