code: def _parse_flags(
      argv: List[str],
  ) -> Tuple[argparse.Namespace, List[str]]:
      """Command lines flag parsing."""
      parser = argparse_flags.ArgumentParser()
  
      # Arguments in inputs
      parser.add_argument(
          "--input_schema_path",
          type=str,
          required=True,
          help="Path to input schema",
      )
      parser.add_argument(
          "--preprocessing_fn_path",
          type=str,
          default="",
          required=True,
          help="Path to a preprocessing_fn module",
      )
      parser.add_argument(
          "--use_tfdv",
          type=bool,
          default=True,
          help="Deprecated and ignored. DO NOT SET.",
      )
      parser.add_argument(
          "--disable_statistics",
          type=bool,
          default=False,
          help="Whether to disable statistics",
      )
      parser.add_argument(
          "--analyze_examples",
          nargs="+",
          default="",
          type=str,
          help="A space-separated list of paths to examples to be analyzed "
          "and transformed",
      )
      parser.add_argument(
          "--transform_only_examples",
          nargs="+",
          default="",
          type=str,
          help="A space-separated list of paths to examples to be transformed only",
      )
      parser.add_argument(
          "--example_data_format",
          type=str,
          default=example_gen_pb2.PayloadFormat.Name(
              example_gen_pb2.FORMAT_TF_EXAMPLE
          ),
          help="Example data format",
      )
      # Arguments in outputs
      parser.add_argument(
          "--transform_fn",
          type=str,
          required=True,
          help="Path that TFTransformOutput will write to",
      )
      parser.add_argument(
          "--tmp_location",
          type=str,
          required=True,
          help="Path to write temporary files. Executor does not own this "
          "directory. User or caller is responsible for cleanup",
      )
      parser.add_argument(
          "--transformed_examples",
          nargs="+",
          type=str,
          default=[],
          help="A space-separated list of paths to write transformed examples",
      )
      parser.add_argument(
          "--per_set_stats_outputs",
          nargs="+",
          type=str,
          default=[],
          help="Paths to statistics output",
      )
      parser.add_argument(
          "--status_file",
          type=str,
          default="",
          help="Path to write status",
      )
      return parser.parse_known_args(argv)
  
file_path: tfx/tfx/components/transform/run_executor.py
imports: import argparse
  from typing import List, Tuple
  import absl
  from absl import app
  from absl.flags import argparse_flags
  import apache_beam
  from tfx.components.transform import executor
  from tfx.components.transform import labels
  from tfx.components.util import udf_utils
  from tfx.proto import example_gen_pb2
  from tfx.types import standard_component_specs
label_desc: Use image node_id 2 for calling a global function with example usage: _parse_flags(argv) and returns: parser