code: def is_valid_size_dict(size_dict):
      if not isinstance(size_dict, dict):
          return False
  
      size_dict_keys = set(size_dict.keys())
      for allowed_keys in VALID_SIZE_DICT_KEYS:
          if size_dict_keys == allowed_keys:
              return True
      return False
  
imports: import copy
  import json
  import os
  import warnings
  from io import BytesIO
  from typing import Any, Dict, Iterable, List, Optional, Tuple, Union
  import numpy
  import requests
  from .dynamic_module_utils import custom_object_save
  from .feature_extraction_utils import BatchFeature
  from .image_transforms import center_crop, normalize, rescale
  from .image_utils import ChannelDimension
  from .utils import IMAGE_PROCESSOR_NAME, PushToHubMixin, add_model_info_to_auto_map, cached_file, copy_func, download_url, is_offline_mode, is_remote_url, is_vision_available, logging
label_desc: Use image node_id 1 for calling a global function with example usage: is_valid_size_dict(size_dict) and returns: False, False, True