code: def write_point_ply(filename, v, n):
      """Write point cloud to ply file.
  
      Args:
        filename: str, filename for ply file to load.
        v: np.array of shape [#v, 3], vertex coordinates
        n: np.array of shape [#v, 3], vertex normals
      """
      vn = np.concatenate([v, n], axis=1)
      vn = [tuple(vn[i]) for i in range(vn.shape[0])]
      vn = np.array(
          vn,
          dtype=[
              ("x", "f4"),
              ("y", "f4"),
              ("z", "f4"),
              ("nx", "f4"),
              ("ny", "f4"),
              ("nz", "f4"),
          ],
      )
      el = PlyElement.describe(vn, "vertex")
      PlyData([el]).write(filename)
  
file_path: graphics/tensorflow_graphics/projects/local_implicit_grid/core/point_utils.py
imports: import numpy
  from plyfile import PlyData
  from plyfile import PlyElement
label_desc: Use image node_id 2 for calling a global function with example usage: write_point_ply(filename, v, n) without return types