code: def fromguess(cls, name, guess):
          
          if guess['type'] == 'episode':
              return Episode.fromguess(name, guess)
  
          if guess['type'] == 'movie':
              return Movie.fromguess(name, guess)
  
          raise ValueError('The guess must be an episode or a movie guess')
docs: Create an :class:`Episode` or a :class:`Movie` with the given `name` based on the `guess`.
  
          :param str name: name of the video.
          :param dict guess: guessed data.
          :raise: :class:`ValueError` if the `type` of the `guess` is invalid