code: def parse_arguments(arguments=None):
      """
      Parse the NeuroNER arguments
  
      arguments:
          arguments the arguments, optionally given as argument
      """
  
      parser = argparse.ArgumentParser(
          description="""NeuroNER CLI""",
          formatter_class=RawTextHelpFormatter,
      )
  
      parser.add_argument(
          "--parameters_filepath",
          required=False,
          default=None,
          help="The parameters file",
      )
      parser.add_argument(
          "--character_embedding_dimension",
          required=False,
          default=None,
          help="",
      )
      parser.add_argument(
          "--character_lstm_hidden_state_dimension",
          required=False,
          default=None,
          help="",
      )
      parser.add_argument(
          "--check_for_digits_replaced_with_zeros",
          required=False,
          default=None,
          help="",
      )
      parser.add_argument(
          "--check_for_lowercase", required=False, default=None, help=""
      )
      parser.add_argument(
          "--dataset_text_folder", required=False, default=None, help=""
      )
      parser.add_argument(
          "--debug", required=False, default=None, help=""
      )
      parser.add_argument(
          "--dropout_rate", required=False, default=None, help=""
      )
      parser.add_argument(
          "--experiment_name", required=False, default=None, help=""
      )
      parser.add_argument(
          "--freeze_token_embeddings",
          required=False,
          default=None,
          help="",
      )
      parser.add_argument(
          "--gradient_clipping_value",
          required=False,
          default=None,
          help="",
      )
      parser.add_argument(
          "--learning_rate", required=False, default=None, help=""
      )
      parser.add_argument(
          "--load_only_pretrained_token_embeddings",
          required=False,
          default=None,
          help="",
      )
      parser.add_argument(
          "--load_all_pretrained_token_embeddings",
          required=False,
          default=None,
          help="",
      )
      parser.add_argument(
          "--main_evaluation_mode",
          required=False,
          default=None,
          help="",
      )
      parser.add_argument(
          "--maximum_number_of_epochs",
          required=False,
          default=None,
          help="",
      )
      parser.add_argument(
          "--number_of_cpu_threads",
          required=False,
          default=None,
          help="",
      )
      parser.add_argument(
          "--number_of_gpus", required=False, default=None, help=""
      )
      parser.add_argument(
          "--optimizer", required=False, default=None, help=""
      )
      parser.add_argument(
          "--output_folder", required=False, default=None, help=""
      )
      parser.add_argument(
          "--output_scores", required=False, default=None, help=""
      )
      parser.add_argument(
          "--patience", required=False, default=None, help=""
      )
      parser.add_argument(
          "--plot_format", required=False, default=None, help=""
      )
      parser.add_argument(
          "--pretrained_model_folder",
          required=False,
          default=None,
          help="",
      )
      parser.add_argument(
          "--reload_character_embeddings",
          required=False,
          default=None,
          help="",
      )
      parser.add_argument(
          "--reload_character_lstm",
          required=False,
          default=None,
          help="",
      )
      parser.add_argument(
          "--reload_crf", required=False, default=None, help=""
      )
      parser.add_argument(
          "--reload_feedforward", required=False, default=None, help=""
      )
      parser.add_argument(
          "--reload_token_embeddings",
          required=False,
          default=None,
          help="",
      )
      parser.add_argument(
          "--reload_token_lstm", required=False, default=None, help=""
      )
      parser.add_argument(
          "--remap_unknown_tokens_to_unk",
          required=False,
          default=None,
          help="",
      )
      parser.add_argument(
          "--spacylanguage", required=False, default=None, help=""
      )
      parser.add_argument(
          "--tagging_format", required=False, default=None, help=""
      )
      parser.add_argument(
          "--token_embedding_dimension",
          required=False,
          default=None,
          help="",
      )
      parser.add_argument(
          "--token_lstm_hidden_state_dimension",
          required=False,
          default=None,
          help="",
      )
      parser.add_argument(
          "--token_pretrained_embedding_filepath",
          required=False,
          default=None,
          help="",
      )
      parser.add_argument(
          "--tokenizer", required=False, default=None, help=""
      )
      parser.add_argument(
          "--train_model", required=False, default=None, help=""
      )
      parser.add_argument(
          "--use_character_lstm", required=False, default=None, help=""
      )
      parser.add_argument(
          "--use_crf", required=False, default=None, help=""
      )
      parser.add_argument(
          "--use_pretrained_model",
          required=False,
          default=None,
          help="",
      )
      parser.add_argument(
          "--verbose", required=False, default=None, help=""
      )
  
      # load data to local folder
      parser.add_argument(
          "--fetch_data", required=False, default="", help=""
      )
      parser.add_argument(
          "--fetch_trained_model", required=False, default="", help=""
      )
  
      try:
          arguments = parser.parse_args(args=arguments)
      except:
          parser.print_help()
          sys.exit(0)
  
      # http://stackoverflow.com/questions/16878315/what-is-the-right-way-to-treat-python-argparse-namespace-as-a-dictionary
      arguments = vars(arguments)
  
      return {k: v for k, v in arguments.items() if v is not None}
  
file_path: NeuroNER/neuroner/__main__.py
imports: from __future__ import print_function
  import argparse
  from argparse import RawTextHelpFormatter
  import os
  import sys
  import warnings
  from neuroner import neuromodel
label_desc: Use image node_id 1 for calling a global function with example usage: parse_arguments(arguments) and returns: unknown