@classmethod
def from_name(cls, name, frame='icrs', parse=False):
    """
        Given a name, query the CDS name resolver to attempt to retrieve
        coordinate information for that object. The search database, sesame
        url, and  query timeout can be set through configuration items in
        ``astropy.coordinates.name_resolve`` -- see docstring for
        `~astropy.coordinates.get_icrs_coordinates` for more
        information.

        Parameters
        ----------
        name : str
            The name of the object to get coordinates for, e.g. ``'M42'``.
        frame : str or `BaseCoordinateFrame` class or instance
            The frame to transform the object to.
        parse: bool
            Whether to attempt extracting the coordinates from the name by
            parsing with a regex. For objects catalog names that have
            J-coordinates embedded in their names eg:
            'CRTS SSS100805 J194428-420209', this may be much faster than a
            sesame query for the same object name. The coordinates extracted
            in this way may differ from the database coordinates by a few
            deci-arcseconds, so only use this option if you do not need
            sub-arcsecond accuracy for coordinates.

        Returns
        -------
        coord : SkyCoord
            Instance of the SkyCoord class.
        """
    from .name_resolve import get_icrs_coordinates
    icrs_coord = get_icrs_coordinates(name, parse)
    icrs_sky_coord = cls(icrs_coord)
    if frame in ('icrs', icrs_coord.__class__):
        return icrs_sky_coord
    else:
        return icrs_sky_coord.transform_to(frame)
