code: def parse_off(src: List[str]) -> Data:
      # Some files may contain a bug and do not have a carriage return after OFF.
      if src[0] == "OFF":
          src = src[1:]
      else:
          src[0] = src[0][3:]
  
      num_nodes, num_faces = [int(item) for item in src[0].split()[:2]]
  
      pos = parse_txt_array(src[1 : 1 + num_nodes])
  
      face = face_to_tri(src[1 + num_nodes : 1 + num_nodes + num_faces])
  
      data = Data(pos=pos)
      data.face = face
  
      return data
  
file_path: pytorch_geometric/torch_geometric/io/off.py
imports: import re
  from typing import List
  import torch
  from torch import Tensor
  from torch._tensor_str import PRINT_OPTS, _tensor_str
  from torch_geometric.data import Data
  from torch_geometric.io import parse_txt_array
label_desc: Use image node_id 1 for calling a global function with example usage: parse_off(src) and returns: data