code: def register(
      self,
      key: str,
      path: str,
      *,
      force_keep: bool = False,
  ) -> None:  # type: ignore
      init_fn = lambda init: Weights(
          path, init=init, force_keep=force_keep
      )
      super().register(key, init_fn)
  
imports: import torch
  import torch.nn
  from typing import Any
  from typing import Type
  from typing import TypeVar
  from typing import Optional
  from cftool.data_structures import ILoadableItem
  from cftool.data_structures import ILoadablePool
  from cftool.types import tensor_dict_type
  from torch.cuda.amp.autocast_mode import autocast
  from .zoo import TPipeline
  from ..misc.toolkit import is_cpu
  from ..misc.toolkit import get_device
  from ..misc.toolkit import empty_cuda_cache
label_desc: Use image node_id 1 for calling the WeightsPool obj's underlying member method code with example usage: obj.register(key, path) without return types