code: def main(argv):
      if len(argv) > 1:
          raise app.UsageError("Too many command-line arguments.")
      if not FLAGS.input_mesh:
          raise IOError("--input_mesh must be specified.")
      if not FLAGS.output_ply:
          raise IOError("--output_ply must be specified.")
  
      mesh = trimesh.load(FLAGS.input_mesh)
      mesh = normalize_mesh(mesh)
      sample_pts, sample_normals = sample_mesh(mesh)
      print(
          "Computed {} samples from mesh.".format(sample_pts.shape[0])
      )
      print("Writing sampled points to {}".format(FLAGS.output_ply))
      pu.write_point_ply(FLAGS.output_ply, sample_pts, sample_normals)
  
file_path: graphics/tensorflow_graphics/projects/local_implicit_grid/resample_geometry.py
imports: import os
  from absl import app
  from absl import flags
  import numpy
  from tensorflow_graphics.projects.local_implicit_grid.core import point_utils
  import trimesh
label_desc: Use image node_id 3 for calling a global function with example usage: main(argv) without return types