code: def densenet121(
      *,
      weights: Optional[DenseNet121_Weights] = None,
      progress: bool = True,
      **kwargs: Any,
  ) -> DenseNet:
      r"""Densenet-121 model from
      `Densely Connected Convolutional Networks <https://arxiv.org/abs/1608.06993>`_.
  
      Args:
          weights (:class:`~torchvision.models.DenseNet121_Weights`, optional): The
              pretrained weights to use. See
              :class:`~torchvision.models.DenseNet121_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.densenet.DenseNet``
              base class. Please refer to the `source code
              <https://github.com/pytorch/vision/blob/main/torchvision/models/densenet.py>`_
              for more details about this class.
  
      .. autoclass:: torchvision.models.DenseNet121_Weights
          :members:
      """
      weights = DenseNet121_Weights.verify(weights)
  
      return _densenet(
          32, (6, 12, 24, 16), 64, weights, progress, **kwargs
      )
  
imports: import re
  from collections import OrderedDict
  from functools import partial
  from typing import Any, List, Optional, Tuple
  import torch
  import torch.nn
  import torch.nn.functional
  import torch.utils.checkpoint
  from torch import Tensor
  from ..transforms._presets import ImageClassification
  from ..utils import _log_api_usage_once
  from ._api import register_model, Weights, WeightsEnum
  from ._meta import _IMAGENET_CATEGORIES
  from ._utils import _ovewrite_named_param, handle_legacy_interface
label_desc: Use image node_id 3 for calling a global function with example usage: densenet121() and returns: _densenet