code: def construct_image_processor(
      image_transforms: Union[List[Callable], List[str]],
      size: int,
      normalization,
  ) -> transforms.Compose:
      """
      Build up an image processor from the provided list of transform types.
  
      Parameters
      ----------
      image_transforms
          A list of image transform types.
      size
          Image size.
      normalization
          A transforms.Normalize object. When the image is ground truth image, 'normalization=None' should be specified.
  
      Returns
      -------
      A transforms.Compose object.
      """
      image_transforms = get_image_transform_funcs(
          transform_types=image_transforms, size=size
      )
      if not any(
          [
              isinstance(trans, transforms.ToTensor)
              for trans in image_transforms
          ]
      ):
          image_transforms.append(transforms.ToTensor())
      if (
          not any(
              [
                  isinstance(trans, transforms.Normalize)
                  for trans in image_transforms
              ]
          )
          and normalization != None
      ):
          image_transforms.append(normalization)
      return transforms.Compose(image_transforms)
  
imports: import ast
  import codecs
  import copy
  import re
  import warnings
  from io import BytesIO
  from typing import Callable, Dict, Iterable, List, Optional, Tuple, Union
  import numpy
  import pandas
  import PIL
  from omegaconf import ListConfig
  from text_unidecode import unidecode
  from timm.data.constants import IMAGENET_DEFAULT_MEAN, IMAGENET_DEFAULT_STD, IMAGENET_INCEPTION_MEAN, IMAGENET_INCEPTION_STD
  from tokenizers import pre_tokenizers
  from torchvision import transforms
  from ..constants import CLIP_IMAGE_MEAN, CLIP_IMAGE_STD, IDENTIFIER, IMAGE, IMAGE_BYTEARRAY, IMAGE_PATH, MMDET_IMAGE, MMLAB_MODELS
  from .collator import DictCollator
  from .preprocess_dataframe import MultiModalFeaturePreprocessor
  from .randaug import RandAugment
  from .trivial_augmenter import TrivialAugment
label_desc: Use image node_id 14 for calling a global function with example usage: construct_image_processor(image_transforms, size, normalization) and returns: transforms