code: def _parse_args():
      parser = argparse.ArgumentParser()
  
      # hyperparameters sent by the client are passed as command-line arguments to the script.
      parser.add_argument("--epochs", type=int, default=1)
      # Data, model, and output directories
      parser.add_argument(
          "--output-data-dir",
          type=str,
          default=os.environ.get("SM_OUTPUT_DATA_DIR"),
      )
      parser.add_argument("--model_dir", type=str)
      parser.add_argument(
          "--train",
          type=str,
          default=os.environ.get("SM_CHANNEL_TRAINING"),
      )
      parser.add_argument(
          "--hosts",
          type=list,
          default=json.loads(os.environ.get("SM_HOSTS")),
      )
      parser.add_argument(
          "--current-host",
          type=str,
          default=os.environ.get("SM_CURRENT_HOST"),
      )
  
      return parser.parse_known_args()
  
file_path: sagemaker-python-sdk/tests/data/tensorflow_mnist/mnist_v1.py
imports: from __future__ import absolute_import, division, print_function
  import argparse
  import json
  import numpy
  import os
  import tensorflow
label_desc: Use image node_id 4 for calling a global function with example usage: _parse_args() and returns: parser