def _conv_func(ndim=2, transpose=False):
    "Return the proper conv `ndim` function, potentially `transposed`."
    assert 1 <= ndim <= 3
    return getattr(nn, f'Conv{"Transpose" if transpose else ""}{ndim}d')
Return the proper conv `ndim` function, potentially `transposed`.
analyze/convnexts4nd/src/models/baselines/nonaka/xresnet.py