code: def _parse_args():
      parser = ArgumentParser()
  
      parser.add_argument(
          "--cluster_mode",
          type=str,
          default="local",
          help="The cluster mode, such as local, yarn or standalone.",
      )
      parser.add_argument(
          "--master",
          type=str,
          default=None,
          help="The master url, only used when cluster mode is standalone.",
      )
      parser.add_argument(
          "--executor_cores",
          type=int,
          default=48,
          help="The executor core number.",
      )
      parser.add_argument(
          "--executor_memory",
          type=str,
          default="160g",
          help="The executor memory.",
      )
      parser.add_argument(
          "--num_executor",
          type=int,
          default=8,
          help="The number of executor.",
      )
      parser.add_argument(
          "--driver_cores",
          type=int,
          default=4,
          help="The driver core number.",
      )
      parser.add_argument(
          "--driver_memory",
          type=str,
          default="36g",
          help="The driver memory.",
      )
      parser.add_argument(
          "--days",
          type=str,
          required=True,
          help="Day range for preprocessing, such as 0-23, 0-1.",
      )
      parser.add_argument(
          "--input_folder",
          type=str,
          required=True,
          help="Path to the folder of parquet files.",
      )
      parser.add_argument(
          "--output_folder",
          type=str,
          default=".",
          help="The path to save the preprocessed data to parquet files. ",
      )
      parser.add_argument(
          "--frequency_limit",
          type=int,
          default=15,
          help="frequency below frequency_limit will be "
          "omitted from the encoding.",
      )
      parser.add_argument(
          "--cross_sizes",
          type=str,
          help="bucket sizes for cross columns",
          default="10000, 10000",
      )
  
      args = parser.parse_args()
      start, end = args.days.split("-")
      args.day_range = list(range(int(start), int(end) + 1))
      args.days = len(args.day_range)
  
      args.cross_sizes = [int(x) for x in args.cross_sizes.split(",")]
  
      return args
  
file_path: analytics-zoo/pyzoo/zoo/examples/friesian/wnd/wnd_preprocessing.py
imports: from zoo.friesian.feature import FeatureTable
  import os
  from argparse import ArgumentParser
  from time import time
  from functools import reduce
  from zoo.orca import init_orca_context, stop_orca_context
  from zoo.orca.data.file import makedirs, write_text, exists
  from zoo import init_nncontext
label_desc: Use image node_id 1 for calling a global function with example usage: _parse_args() and returns: args