code: def convert_coords(self):
          
          if self.coordsys in ['image', 'physical']:
              coords = self._convert_pix_coords()
          else:
              coords = self._convert_sky_coords()
  
          if self.region_type == 'line':
              coords = [coords[0][0], coords[0][1]]
  
          if self.region_type == 'text':
              coords.append(self.meta['text'])
  
          return coords
docs: Process list of coordinates
  
          This mainly searches for tuple of coordinates in the coordinate list and
          creates a SkyCoord or PixCoord object from them if appropriate for a
          given region type. This involves again some coordinate transformation,
          so this step could be moved to the parsing process