code: def check_all_augs_exists(
      augmentations: typing.List[typing.List],
      except_augmentations: Optional[Set] = None,
  ) -> typing.List[typing.List]:
      existed_augs = {i[0] for i in augmentations}
      except_augmentations = except_augmentations or set()
  
      not_existed = []
  
      for cls, _ in get_transforms(
          except_augmentations=except_augmentations
      ):
          if cls not in existed_augs:
              not_existed.append(cls.__name__)
  
      if not_existed:
          raise ValueError(
              f"These augmentations do not exist in augmentations and except_augmentations: {not_existed}"
          )
  
      return augmentations
  
imports: import inspect
  import random
  import typing
  from io import StringIO
  from typing import Optional, Set, Type
  import numpy
  import albumentations
label_desc: Use image node_id 8 for calling a global function with example usage: check_all_augs_exists(augmentations, except_augmentations) and returns: augmentations