code: def run_cli(cli_parser, run_sample, known_args=None):
      
      parser = create(cli_parser)
      args = parser.parse_args(known_args)
  
      run_sample(args)
docs: Run sampling with CLI arguments.
  
      Parameters
      ----------
      cli_parser : function
          Function to add method specific arguments to parser
      run_sample: function
          Method specific function that runs the sampling
      known_args: list [optional]
          Additional arguments to parse
  
      Returns
      ----------
      argparse object