code: def opt_to_string(opt):
      summary = "opt: [{}]\n".format(opt.dest)
      summary += "---- type: {}\n".format(opt.type)
      summary += "---- default: {}\n".format(opt.default)
      summary += "---- description: {}\n".format(opt.help)
      return summary
  
file_path: NiftyNet/tests/user_parameters_default_test.py
imports: from __future__ import absolute_import, print_function
  import argparse
  import tensorflow
  from niftynet.utilities.user_parameters_default import *
  from tests.niftynet_testcase import NiftyNetTestCase
label_desc: Use image node_id 1 for calling a global function with example usage: opt_to_string(opt) and returns: summary