code: def _parse_args():
      parser = ArgumentParser(
          description="Generate random dataset for demo"
      )
      parser.add_argument(
          "num_samples", type=int, help="The number of samples"
      )
      parser.add_argument(
          "output_path", type=str, help="The path for output dataset"
      )
      parser.add_argument(
          "--cluster_mode",
          type=str,
          default="local",
          help="The cluster mode, such as local, yarn, standalone or spark-submit.",
      )
      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_executors",
          type=int,
          default=8,
          help="The number of executors.",
      )
      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.",
      )
      args = parser.parse_args()
      return args
  
file_path: BigDL/python/friesian/example/wnd/recsys2021/generate_dummy_data.py
imports: import argparse
  import random
  import os
  from argparse import ArgumentParser
  from pyspark.sql.types import StructType, StructField, StringType, LongType, BooleanType
  from bigdl.orca import init_orca_context, stop_orca_context, OrcaContext
  from bigdl.friesian.feature import FeatureTable
label_desc: Use image node_id 1 for calling a global function with example usage: _parse_args() and returns: args