class_docstr: Reads an svg file and exports paths to a JSON format.
  
  Only segments and Bezier curves are supported
code: def _get_paths(self):
      result = []
      for path in self.paths:
          style = path.style
          edgecolor = self._get_style_attr(style, "stroke")
          linewidth = float(self._get_style_attr(style, "stroke-width"))
          path_id = path.id
          path_dict = {
              "edgecolor": edgecolor,
              "linewidth": linewidth,
              "id": path_id,
              "items": [],
          }
  
          # svg.MoveTo instances do not hold any information since they
          # just contain the first point of the next item
          filtered_items = [
              i for i in path.items if not isinstance(i, svg.MoveTo)
          ]
          for geom in filtered_items:
              path_dict["items"].append(self._type_and_pts(geom))
  
          result.append(path_dict)
  
      return result
  
file_path: nilearn/nilearn/plotting/glass_brain_files/svg_to_json_converter.py
imports: import json
  import re
  import sys
label_desc: Use image node_id 4 for calling the SVGToJSONConverter obj's underlying member method code with example usage: obj._get_paths() and returns: result