This move effect may be in need of research. Reason:How long it confuses the holder in Stadium 2. Does the confused Pokémon replacement glitch occur in Stadium 2 You can discuss this on the talk page.
Confuses the holder for a duration of 256 turns and raises its Attack by 2 stages as soon as it enters battle. It is consumed upon use.
The Berserk Gene is consumed even if the holder is already confused or already has +6 Attack stages when it enters battle (due to Baton Pass). If a confused Pokémon is switched out and replaced by a Pokémon holding a Berserk Gene, the holder will be confused for the remaining duration of the first Pokémon's confusion, rather than for 256 turns.
Spoiler warning: this article may contain major plot or ending details.
In Detective Pikachu, the Berserk Gene is referenced several times as part of the drug known as R, which can momentarily make Pokémon more powerful, but also causes them to become berserk. Its effects derive from Mewtwo's cells and the Berserk Gene within them.
Spoilers end here.
Trivia
In the game data of Pokémon Gold, Silver, and Crystal, Mewtwo is defined to always hold a Berserk Gene when encountered in the wild. However, Mewtwo cannot be encountered in the wild in these games, so this data is unused.
Even if Mewtwo could be encountered in the wild, the Berserk Gene would be consumed immediately, so the player would not be able to obtain a Berserk Gene from wild Mewtwo.