code: def get_always_apply(
      transforms: typing.Union["BaseCompose", TransformsSeqType]
  ) -> TransformsSeqType:
      new_transforms: typing.List[TransformType] = []
      for transform in transforms:  # type: ignore
          if isinstance(transform, BaseCompose):
              new_transforms.extend(get_always_apply(transform))
          elif transform.always_apply:
              new_transforms.append(transform)
      return new_transforms
  
imports: from __future__ import division
  import random
  import typing
  import warnings
  from collections import defaultdict
  import numpy
  from ..None import random_utils
  from .bbox_utils import BboxParams, BboxProcessor
  from .keypoints_utils import KeypointParams, KeypointsProcessor
  from .serialization import SERIALIZABLE_REGISTRY, Serializable, get_shortest_class_fullname, instantiate_nonserializable
  from .transforms_interface import BasicTransform
  from .utils import format_args, get_shape
label_desc: Use image node_id 1 for calling a global function with example usage: get_always_apply(transforms) and returns: new_transforms