code: def from_string(cls, link):
          
          ma = cls._pattern.search(link)
          if ma is None:
              raise ValueError(link)
          id = ma.group('id')
          return cls(id)
docs: Return a new SheetUrl instance from parsed URL string.
  
          >>> SheetUrl.from_string('https://docs.google.com/spreadsheets/d/spam')
          <SheetUrl id='spam' gid=0>