code: def get_points(d):
      commands = path.parseString(d)
      points = []
      currentset = None
      for command in commands:
          if command[0] == "M" or command[0] == "m":
              currentset = []
              points.append(currentset)
              currentset.append(command[1][-1])
          elif command[0] == "L" or command[0] == "l":
              currentset.extend(command[1])
          elif command[0] == "C" or command[0] == "c":
              currentset.extend(command[1])
      return points
  
file_path: scikit-learn/doc/tutorial/machine_learning_map/parse_path.py
label_desc: Use image node_id 5 for calling a global function with example usage: get_points(d) and returns: points