code: def test_read_off():
      root_dir = osp.join(osp.dirname(osp.realpath(__file__)))
  
      data = read_off(osp.join(root_dir, "example1.off"))
      assert len(data) == 2
      assert data.pos.tolist() == [
          [0, 0, 0],
          [0, 1, 0],
          [1, 0, 0],
          [1, 1, 0],
      ]
      assert data.face.tolist() == [[0, 1], [1, 2], [2, 3]]
  
      data = read_off(osp.join(root_dir, "example2.off"))
      assert len(data) == 2
      assert data.pos.tolist() == [
          [0, 0, 0],
          [0, 1, 0],
          [1, 0, 0],
          [1, 1, 0],
      ]
      assert data.face.tolist() == [[0, 0], [1, 2], [2, 3]]
  
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 1 for calling a global function with example usage: test_read_off() without return types