code: def _parse_parameters(img, size, min_size, max_size):
      isize = (img.shape[1], img.shape[0])
  
      if size is not None:
          osize = etai.infer_missing_dims(size, isize)
      else:
          osize = isize
  
      osize = etai.clip_frame_size(
          osize, min_size=min_size, max_size=max_size
      )
  
      return osize if osize != isize else None
  
imports: import logging
  import os
  import eta.core.image
  import eta.core.utils
  import fiftyone.core.storage
  import fiftyone.core.utils
  import fiftyone.core.validation
label_desc: Use image node_id 12 for calling a global function with example usage: _parse_parameters(img, size, min_size, max_size) and returns: unknown