code: def init(
      model: Model[InT, OutT],
      X: Optional[InT] = None,
      Y: Optional[OutT] = None,
  ) -> None:
      if X is not None:
          model.set_dim("nO", get_width(X))
      # Randomly initialize the parameter, as though it were an embedding.
      Q = model.ops.alloc1f(model.get_dim("nO"))
      Q += model.ops.xp.random.uniform(-0.1, 0.1, Q.shape)
      model.set_param("Q", Q)
  
file_path: thinc/thinc/layers/parametricattention.py
imports: from typing import Callable, Optional, Tuple
  from ..config import registry
  from ..model import Model
  from ..types import Ragged
  from ..util import get_width
label_desc: Use image node_id 3 for calling a global function with example usage: init(model, X, Y) without return types