code: def cli_parse(parser):
      parser.add_argument(
          "-X",
          "--model-input-file",
          type=str,
          required=True,
          default=None,
          help="Model input file",
      )
      parser.add_argument(
          "-mor",
          "--max-order",
          type=int,
          required=True,
          default=2,
          help="Order of HDMR expansion 1-3",
      )
      parser.add_argument(
          "-por",
          "--poly-order",
          type=int,
          required=True,
          default=2,
          help="Maximum polynomial order 1-10",
      )
      parser.add_argument(
          "-K",
          "--bootstrap",
          type=int,
          required=False,
          default=20,
          help="Number of bootstrap iteration 1-100",
      )
      parser.add_argument(
          "-R",
          "--subset",
          type=int,
          required=False,
          default=None,
          help="Number of bootstrap samples 300-N",
      )
      parser.add_argument(
          "-mit",
          "--max-iter",
          type=int,
          required=False,
          default=100,
          help="Maximum iteration for backfitting method 1-1000",
      )
      parser.add_argument(
          "-l2",
          "--l2-penalty",
          type=float,
          required=False,
          default=0.01,
          help="Regularization term",
      )
      parser.add_argument(
          "-a",
          "--alpha",
          type=float,
          required=False,
          default=0.95,
          help="Confidence interval for F-Test",
      )
      parser.add_argument(
          "-ext",
          "--extended-base",
          type=lambda x: (str(x).lower() == "true"),
          required=True,
          default=True,
          help="Whether to use extended base matrix",
      )
      parser.add_argument(
          "-print",
          "--print-to-console",
          type=lambda x: (str(x).lower() == "true"),
          required=False,
          default=False,
          help="Whether to print out result to the console",
      )
      parser.add_argument(
          "-emul",
          "--return-emulator",
          type=lambda x: (str(x).lower() == "true"),
          required=False,
          default=False,
          help="Whether to attach emulate() method to the ResultDict",
      )
      return parser
  
imports: import math
  import warnings
  from typing import Dict, Tuple
  from types import MethodType
  from itertools import combinations, product
  from collections import defaultdict, namedtuple
  import numpy
  from pandas import DataFrame
  from numpy.linalg import det, pinv, matrix_rank
  from scipy.linalg import svd, LinAlgError, solve
  from scipy import stats, special
  from .None import common_args
  from ..util import read_param_file, ResultDict
label_desc: Use image node_id 20 for calling a global function with example usage: cli_parse(parser) and returns: parser