code: def yield_file(
      in_file: str,
  ) -> Iterator[Tuple[str, List[Union[int, float]]]]:
      f = open(in_file)
      buf = f.read()
      f.close()
      for b in buf.split("\n"):
          if b.startswith("v "):
              yield "v", [float(x) for x in b.split(" ")[1:]]
          elif b.startswith("f "):
              triangles = b.split(" ")[1:]
              # -1 as .obj is base 1 but the Data class expects base 0 indices
              yield "f", [int(t.split("/")[0]) - 1 for t in triangles]
          else:
              yield "", []
  
imports: from typing import Iterator, List, Optional, Tuple, Union
  import torch
  from torch_geometric.data import Data
label_desc: Use image node_id 1 for calling a global function with example usage: yield_file(in_file) without return types