code: def _codes_bezier(pts):
      bezier_num = len(pts)
      # Next two lines are meant to handle both Bezier 3 and 4
      path_attr = f"CURVE{bezier_num}"
      codes = [getattr(Path, path_attr)] * (bezier_num - 1)
      return [Path.MOVETO] + codes
  
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 1 for calling a global function with example usage: _codes_bezier(pts) and returns: unknown