code: def parse(region_string):
      
      rp = RegionParser()
      ss = rp.parse(region_string)
      sss1 = rp.convert_attr(ss)
      sss2 = _check_wcs(sss1)
  
      shape_list, comment_list = rp.filter_shape2(sss2)
      return ShapeList(shape_list, comment_list=comment_list)
docs: Parse DS9 region string into a ShapeList.
  
      Parameters
      ----------
      region_string : str
          Region string
  
      Returns
      -------
      shapes : `ShapeList`
          List of `~pyregion.Shape`