code: def _parse_args_v1():
      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"),
      )
  
      known, unknown = parser.parse_known_args()
      return known
  
imports: import argparse
  import json
  import os
  from packaging.version import Version
label_desc: Use image node_id 1 for calling a global function with example usage: _parse_args_v1() and returns: known