code: def parser(input_file_path="config.json"):
      """
      Parser for the .json file containing the configuration of the method.
      """
  
      # --- Read .json file
      try:
          with open(input_file_path, "r") as config_file:
              config_new = json.load(config_file)
              config_file.close()
      except:
          raise Exception(
              'Config file "'
              + input_file_path
              + '" not loaded properly. Please check it an try again.'
          )
  
      import copy
  
      options = update_config(config_new, copy.deepcopy(default_config))
  
      return options
  
imports: import sys
  import optparse
  import os
  import numpy
  import json
label_desc: Use image node_id 2 for calling a global function with example usage: parser(input_file_path) and returns: options