code: def standardise_section_name(configparser, old_name):
      """
      rename configparser section
      This helper is useful when user specifies complex section names
      """
      new_name = standardise_string(old_name)
      if old_name == new_name:
          return old_name
      items = configparser.items(old_name)
      configparser.add_section(new_name)
      for name, value in items:
          configparser.set(new_name, name, value)
      configparser.remove_section(old_name)
      return new_name
  
file_path: NiftyNet/niftynet/utilities/user_parameters_helper.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import argparse
  import re
  from six import string_types
  from niftynet.utilities.user_parameters_regex import match_array
label_desc: Use image node_id 6 for calling a global function with example usage: standardise_section_name(configparser, old_name) and returns: new_name, old_name