code: def get_average_image(image_lst: List[np.ndarray]) -> np.array:
      return np.mean(
          [x for x in image_lst if x is not None],
          axis=(0),
          dtype=np.float32,
      )
  
imports: import logging
  import warnings
  from collections.abc import Iterable
  from dataclasses import dataclass
  from io import BytesIO
  from typing import Callable, List, Optional, Tuple, Union
  import numpy
  import tifffile
  import torch
  import torchvision.transforms.functional
  from torchvision.io import decode_image, ImageReadMode
  from torchvision.models._api import WeightsEnum
  from ludwig.api_annotations import DeveloperAPI
  from ludwig.constants import CROP_OR_PAD, INTERPOLATE
  from ludwig.encoders.base import Encoder
  from ludwig.utils.fs_utils import get_bytes_obj_from_path
  from ludwig.utils.registry import Registry
label_desc: Use image node_id 2 for calling a global function with example usage: get_average_image(image_lst) and returns: np