code: def _is_cuda_contiguous(tensor):
      """Check if a tensor is not none, is cuda, and is contiguous."""
      _is_cuda(tensor)
      assert tensor.is_contiguous()
  
file_path: megatron-lm/megatron/text_generation/communication.py
imports: import torch
  from megatron.core import mpu
label_desc: Use image node_id 4 for calling a global function with example usage: _is_cuda_contiguous(tensor) without return types