code: def test_write_off():
      pos = torch.tensor([[0, 0, 0], [0, 1, 0], [1, 0, 0], [1, 1, 0]])
      face = torch.tensor([[0, 1], [1, 2], [2, 3]])
  
      name = str(random.randrange(sys.maxsize))
      path = osp.join("/", "tmp", f"{name}.off")
      write_off(Data(pos=pos, face=face), path)
      data = read_off(path)
      os.unlink(path)
  
      assert data.pos.tolist() == pos.tolist()
      assert data.face.tolist() == face.tolist()
  
file_path: pytorch_geometric/test/io/test_off.py
imports: import os
  import os.path
  import random
  import sys
  import torch
  from torch_geometric.data import Data
  from torch_geometric.io import read_off, write_off
label_desc: Use image node_id 2 for calling a global function with example usage: test_write_off() without return types