code: def main(argv=sys.argv):
      """NeuroNER main method
  
      Args:
          parameters_filepath the path to the parameters file
          output_folder the path to the output folder
      """
      arguments = parse_arguments(argv[1:])
  
      # fetch data and models from the package
      if arguments["fetch_data"] or arguments["fetch_trained_model"]:
          if arguments["fetch_data"]:
              neuromodel.fetch_data(arguments["fetch_data"])
          if arguments["fetch_trained_model"]:
              neuromodel.fetch_model(arguments["fetch_trained_model"])
  
          msg = """When the fetch_data and fetch_trained_model arguments are specified, other
              arguments are ignored. Remove these arguments to train or apply a model."""
          print(msg)
          sys.exit(0)
  
      # create the model
      nn = neuromodel.NeuroNER(**arguments)
      nn.fit()
      nn.close()
  
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 2 for calling a global function with example usage: main(argv) without return types