code: def parse_argstring(magic_func, argstring):
      """Parse the string of arguments for the given magic function."""
      return magic_func.parser.parse_argstring(argstring)
  
imports: import argparse
  import re
  from IPython.core.error import UsageError
  from IPython.utils.decorators import undoc
  from IPython.utils.process import arg_split
  from IPython.utils.text import dedent
label_desc: Use image node_id 2 for calling a global function with example usage: parse_argstring(magic_func, argstring) and returns: magic_func