def METHOD_NAME(player: media.Player):
    """
    Stop a sound that is currently playing.
    :param player: Player returned from :func:`play_sound`.
    """
    if isinstance(player, Sound):
        raise ValueError(
            "stop_sound takes the media player object returned from the play() command, "
            "not the loaded Sound object."
        )
    if not isinstance(player, media.Player):
        raise ValueError(
            "stop_sound takes a media player object returned from the play() command."
        )
    player.pause()
    player.delete()
    if player in media.Source._players:
        media.Source._players.remove(player)