code: def _codes(atype, pts):
      dispatch = {"bezier": _codes_bezier, "segment": _codes_segment}
  
      return dispatch[atype](pts)
  
file_path: nilearn/nilearn/plotting/glass_brain.py
imports: import json
  import os
  from matplotlib import colors, patches, transforms
  from matplotlib.path import Path
label_desc: Use image node_id 3 for calling a global function with example usage: _codes(atype, pts) and returns: dispatch