code: def _args_to_config(parser, args, compress=True):
      pargs = parser.parse_args(args)
      # parser.nc=True means that the flag was not given => switch to default (True or config)
      check_after = None if pargs.no_check is True else False
      kwargs = dict(
          n_threads=pargs.cpus,
      )
      if compress:
          kwargs.update(
              sample_rate=pargs.sample_rate,
              n_channels=pargs.n_channels,
              dtype=pargs.dtype.strip() if pargs.dtype else pargs.dtype,
              chunk_duration=pargs.chunk,
              check_after_compress=check_after,
          )
      else:
          kwargs.update(
              check_after_decompress=check_after,
          )
      config = read_config(**kwargs)
      return pargs, config
  
imports: import argparse
  import bisect
  from functools import lru_cache
  import hashlib
  import json
  import logging
  import multiprocessing
  from multiprocessing.dummy import Pool
  import os
  import os.path
  from pathlib import Path
  import sys
  from threading import Lock
  import zlib
  from tqdm import tqdm
  import numpy
label_desc: Use image node_id 14 for calling a global function with example usage: _args_to_config(parser, args, compress) and returns: pargs,  config