code: def fancy_getopt(options, negative_opt, object, args):
      parser = FancyGetopt(options)
      parser.set_negative_aliases(negative_opt)
      return parser.getopt(args, object)
  
imports: import sys, string, re
  import getopt
  from distutils.errors import *
label_desc: Use image node_id 1 for calling a global function with example usage: fancy_getopt(options, negative_opt, object, args) and returns: parser