code: def _convert_sky_coords(self):
          
          parsed_angles = [(x, y)
                           for x, y in zip(self.coord[:-1:2], self.coord[1::2])
                           if (isinstance(x, coordinates.Angle) and isinstance(y, coordinates.Angle))
                           ]
          frame = coordinates.frame_transform_graph.lookup_name(self.coordsys)
  
          lon, lat = zip(*parsed_angles)
          if hasattr(lon, '__len__') and hasattr(lat, '__len__') and len(lon) == 1 and len(lat) == 1:
              # force entries to be scalar if they are length-1
              lon, lat = u.Quantity(lon[0]), u.Quantity(lat[0])
          else:
              # otherwise, they are vector quantities
              lon, lat = u.Quantity(lon), u.Quantity(lat)
          sphcoords = coordinates.UnitSphericalRepresentation(lon, lat)
          coords = [SkyCoord(frame(sphcoords))]
  
          if self.region_type != 'polygon':
              coords += self.coord[len(coords * 2):]
  
          return coords
docs: Convert to sky coordinates