code: def init(
      init_W: Callable,
      init_b: Callable,
      model: Model[Floats2d, Floats2d],
      X: Optional[Floats2d] = None,
      Y: Optional[Floats2d] = None,
  ) -> None:
      if X is not None:
          model.set_dim("nI", get_width(X))
      if Y is not None:
          model.set_dim("nO", get_width(Y))
      model.set_param(
          "W",
          init_W(model.ops, (model.get_dim("nO"), model.get_dim("nI"))),
      )
      model.set_param("b", init_b(model.ops, (model.get_dim("nO"),)))
  
file_path: thinc/thinc/layers/hard_swish_mobilenet.py
imports: from typing import Callable, Optional, Tuple, cast
  from ..config import registry
  from ..initializers import he_normal_init, zero_init
  from ..model import Model
  from ..types import Floats1d, Floats2d
  from ..util import get_width, partial
  from .chain import chain
  from .dropout import Dropout
  from .layernorm import LayerNorm
label_desc: Use image node_id 3 for calling a global function with example usage: init(init_W, init_b, model, X, Y) without return types