code: def _get_adn_layer(
      act: tuple | str | None,
      dropout: tuple | str | float | None,
      ordering: str | None,
  ) -> ADN:
      if ordering:
          return ADN(
              act=act, dropout=dropout, dropout_dim=1, ordering=ordering
          )
      return ADN(act=act, dropout=dropout, dropout_dim=1)
  
file_path: MONAI/monai/networks/nets/fullyconnectednet.py
imports: from __future__ import annotations
  from collections.abc import Sequence
  import torch
  import torch.nn
  from monai.networks.blocks import ADN
  from monai.networks.layers.factories import Act
label_desc: Use image node_id 1 for calling a global function with example usage: _get_adn_layer(act, dropout, ordering) and returns: ADN, ADN