code: def resize_model(model: Model[InT, OutT], new_nO):
      old_layer = model.layers[0]
      new_layer = model.attrs["resize_layer"](old_layer, new_nO)
      model.layers[0] = new_layer
      return model
  
file_path: thinc/thinc/layers/resizable.py
imports: from typing import Callable, Optional, TypeVar
  from ..config import registry
  from ..model import Model
  from ..types import Floats2d
label_desc: Use image node_id 4 for calling a global function with example usage: resize_model(model, new_nO) and returns: model