def _video_resnet(block: Type[Union[(BasicBlock, Bottleneck)]], conv_makers: Sequence[Type[Union[(Conv3DSimple, Conv3DNoTemporal, Conv2Plus1D)]]], layers: List[int], stem: Callable[(..., nn.Module)], weights: Optional[WeightsEnum], progress: bool, **kwargs: Any) -> VideoResNet:
    if (weights is not None):
        _ovewrite_named_param(kwargs, 'num_classes', len(weights.meta['categories']))
    model = VideoResNet(block, conv_makers, layers, stem, **kwargs)
    if (weights is not None):
        model.load_state_dict(weights.get_state_dict(progress=progress))
    return model
def _video_resnet(block: Type[Union[(BasicBlock, Bottleneck)]], conv_makers: Sequence[Type[Union[(Conv3DSimple, Conv3DNoTemporal, Conv2Plus1D)]]], layers: List[int], stem: Callable[(..., nn.Module)], weights: Optional[WeightsEnum], progress: bool, **kwargs: Any) -> VideoResNet:
    if (weights is not None):
        _ovewrite_named_param(kwargs, 'num_classes', len(weights.meta['categories']))
    model = VideoResNet(block, conv_makers, layers, stem, **kwargs)
    if (weights is not None):
        model.load_state_dict(weights.get_state_dict(progress=progress))
    return model