code: def rnn_cbs(alpha=0.0, beta=0.0):
      "All callbacks needed for (optionally regularized) RNN training"
      reg = (
          [RNNRegularizer(alpha=alpha, beta=beta)]
          if alpha or beta
          else []
      )
      return [ModelResetter(), RNNCallback()] + reg
  
file_path: fastai/fastai/callback/rnn.py
imports: from __future__ import annotations
  from ..basics import *
label_desc: Use image node_id 1 for calling a global function with example usage: rnn_cbs(alpha, beta) and returns: unknown