code: def main():
      parser = argparse.ArgumentParser()
      parser.add_argument(
          "--image_dir",
          type=str,
          default=None,
          help="The image folder path.",
      )
      parser.add_argument(
          "--json_path",
          type=str,
          default=None,
          help="Dataset json path.",
      )
      parser.add_argument(
          "--output_dir", type=str, default=None, help="Output dir."
      )
      parser.add_argument(
          "--slice_size", type=int, default=500, help="slice_size"
      )
      parser.add_argument(
          "--overlap_ratio",
          type=float,
          default=0.25,
          help="overlap_ratio",
      )
      args = parser.parse_args()
  
      slice_data(
          args.image_dir,
          args.json_path,
          args.output_dir,
          args.slice_size,
          args.overlap_ratio,
      )
  
label_desc: Use image node_id 2 for calling a global function with example usage: main() without return types