code: def aniso_kernel(scale: tuple | list):
      """
      A helper function to compute kernel_size, padding and stride for the given scale
  
      Args:
          scale: scale from a current scale level
      """
      kernel_size = [
          3 if scale[k] > 1 else 1 for k in range(len(scale))
      ]
      padding = [k // 2 for k in kernel_size]
      return kernel_size, padding, scale
  
imports: from __future__ import annotations
  from collections.abc import Callable
  from typing import Union
  import numpy
  import torch
  import torch.nn
  from monai.networks.blocks.upsample import UpSample
  from monai.networks.layers.factories import Act, Conv, Norm, split_args
  from monai.networks.layers.utils import get_act_layer, get_norm_layer
  from monai.utils import UpsampleMode, has_option
label_desc: Use image node_id 2 for calling a global function with example usage: aniso_kernel(scale) and returns: kernel_size,  padding,  scale