code: def ParametricAttention(nO: Optional[int] = None) -> Model[InT, OutT]:
      """Weight inputs by similarity to a learned vector"""
      return Model(
          "para-attn",
          forward,
          init=init,
          params={"Q": None},
          dims={"nO": nO},
      )
  
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 1 for calling a global function with example usage: ParametricAttention(nO) and returns: Model