code: def transform_image(
      input_path,
      output_path,
      size=None,
      min_size=None,
      max_size=None,
      interpolation=None,
  ):
      """Transforms the image according to the provided parameters.
  
      Args:
          input_path: the path to the input image
          output_path: the path to write the output image
          size (None): an optional ``(width, height)`` for the image. One
              dimension can be -1, in which case the aspect ratio is preserved
          min_size (None): an optional minimum ``(width, height)`` for the image.
              A dimension can be -1 if no constraint should be applied. The image
              is resized (aspect-preserving) if necessary to meet this constraint
          max_size (None): an optional maximum ``(width, height)`` for the image.
              A dimension can be -1 if no constraint should be applied. The image
              is resized (aspect-preserving) if necessary to meet this constraint
          interpolation (None): an optional ``interpolation`` argument for
              ``cv2.resize()``
      """
      _transform_image(
          input_path,
          output_path,
          size=size,
          min_size=min_size,
          max_size=max_size,
          interpolation=interpolation,
      )
  
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 6 for calling a global function with example usage: transform_image(input_path, output_path, size, min_size, max_size, interpolation) without return types