code: def _parse_args():
      """Parses CLI arguments."""
      parser = argparse.ArgumentParser(
          description="A tool to convert files to be compatible with "
          "version 2.0 and later of the SageMaker Python SDK. "
          "Simple usage: sagemaker-upgrade-v2 --in-file foo.py --out-file bar.py"
      )
      parser.add_argument(
          "--in-file",
          help="If converting a single file, the file to convert. The file's extension "
          "must be either '.py' or '.ipynb'.",
      )
      parser.add_argument(
          "--out-file",
          help="If converting a single file, the output file destination. The file's extension "
          "must be either '.py' or '.ipynb'. If needed, directories in the output path are created. "
          "If the output file already exists, it is overwritten.",
      )
  
      return parser.parse_args()
  
imports: from __future__ import absolute_import
  import argparse
  import os
  from sagemaker.cli.compatibility.v2 import files
label_desc: Use image node_id 2 for calling a global function with example usage: _parse_args() and returns: parser