code: def test_pin_noncontiguous():
      t = torch.empty([10, 100]).transpose(0, 1)
  
      assert not t.is_contiguous()
      assert not F.is_pinned(t)
  
      with pytest.raises(dgl.DGLError):
          dgl.utils.pin_memory_inplace(t)
  
file_path: dgl/tests/python/pytorch/utils/test_pin_memory.py
imports: import backend
  import dgl
  import pytest
  import torch
label_desc: Use image node_id 1 for calling a global function with example usage: test_pin_noncontiguous() without return types