code: def init(
      model: Model[InT, OutT],
      X: Optional[InT] = None,
      Y: Optional[OutT] = None,
  ) -> None:
      idx = model.attrs["idx"]
      X_i = X[idx] if X is not None else X
      Y_i = Y[idx] if Y is not None else Y
      model.layers[0].initialize(X=X_i, Y=Y_i)
  
imports: from typing import Any, Callable, Optional, Tuple
  from ..config import registry
  from ..model import Model
label_desc: Use image node_id 3 for calling a global function with example usage: init(model, X, Y) without return types