code: def swin3d_b(
      *,
      weights: Optional[Swin3D_B_Weights] = None,
      progress: bool = True,
      **kwargs: Any,
  ) -> SwinTransformer3d:
      """
      Constructs a swin_base architecture from
      `Video Swin Transformer <https://arxiv.org/abs/2106.13230>`_.
  
      Args:
          weights (:class:`~torchvision.models.video.Swin3D_B_Weights`, optional): The
              pretrained weights to use. See
              :class:`~torchvision.models.video.Swin3D_B_Weights` below for
              more details, and possible values. By default, no pre-trained
              weights are used.
          progress (bool, optional): If True, displays a progress bar of the
              download to stderr. Default is True.
          **kwargs: parameters passed to the ``torchvision.models.video.swin_transformer.SwinTransformer``
              base class. Please refer to the `source code
              <https://github.com/pytorch/vision/blob/main/torchvision/models/video/swin_transformer.py>`_
              for more details about this class.
  
      .. autoclass:: torchvision.models.video.Swin3D_B_Weights
          :members:
      """
      weights = Swin3D_B_Weights.verify(weights)
  
      return _swin_transformer3d(
          patch_size=[2, 4, 4],
          embed_dim=128,
          depths=[2, 2, 18, 2],
          num_heads=[4, 8, 16, 32],
          window_size=[8, 7, 7],
          stochastic_depth_prob=0.1,
          weights=weights,
          progress=progress,
          **kwargs,
      )
  
imports: from functools import partial
  from typing import Any, Callable, List, Optional, Tuple
  import torch
  import torch.nn.functional
  from torch import nn, Tensor
  from ...transforms._presets import VideoClassification
  from ...utils import _log_api_usage_once
  from .._api import register_model, Weights, WeightsEnum
  from .._meta import _KINETICS400_CATEGORIES
  from .._utils import _ovewrite_named_param, handle_legacy_interface
  from ..swin_transformer import PatchMerging, SwinTransformerBlock
label_desc: Use image node_id 9 for calling a global function with example usage: swin3d_b() and returns: _swin_transformer3d