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(
          "--input_transaction", type=str, help="transaction files."
      )
      parser.add_argument(
          "--input_meta", type=str, help="item metadata file"
      )
      parser.add_argument("--output", default=".")
      parser.add_argument(
          "--write_mode",
          choices=["overwrite", "errorifexists"],
          default="overwrite",
      )
  
      args = parser.parse_args()
      return args
  
file_path: analytics-zoo/pyzoo/zoo/examples/friesian/dien/dien_preprocessing.py
imports: import sys
  import os
  import time
  from pyspark import StorageLevel
  from zoo.orca import init_orca_context, stop_orca_context
  from pyspark.sql.functions import udf, col
  from zoo.friesian.feature import FeatureTable
  from pyspark.sql.types import StringType, ArrayType, FloatType
  from argparse import ArgumentParser
label_desc: Use image node_id 1 for calling a global function with example usage: _parse_args() and returns: args