code: def parse_header(plyfile, ext):
      # Variables
      line = []
      properties = []
      num_points = None
  
      while b"end_header" not in line and line != b"":
          line = plyfile.readline()
  
          if b"element" in line:
              line = line.split()
              num_points = int(line[2])
  
          elif b"property" in line:
              line = line.split()
              properties.append(
                  (line[2].decode(), ext + ply_dtypes[line[1]])
              )
  
      return num_points, properties
  
file_path: torch-points3d/torch_points3d/modules/KPConv/plyutils.py
imports: import numpy
  import sys
  import logging
label_desc: Use image node_id 1 for calling a global function with example usage: parse_header(plyfile, ext) and returns: num_points,  properties