

def resize(parameters):
    pass


def rotate(parameters):
    pass



from skimage import transform


def resize(parameters):
    """Resizes input to match a certain size.

    Check http://scikit-image.org/docs/dev/api/skimage.transform.html#resize

    :param parameters['data'][0]: array to resize
    :type parameters['data'][0]: numpy.array
    :param parameters['output_shape']: size of the output
    :type parameters['data'][1]: tuple

    :return: numpy.array
    """
    return transform.resize(parameters['data'][0], parameters['output_shape'])


def rotate(parameters):
    """Rotates input anti-clockwise around its center.

    Check http://scikit-image.org/docs/dev/api/skimage.transform.html#rotate

    :param parameters['data'][0]: array to rotate
    :type parameters['data'][0]: numpy.array
    :param parameters['angle']: rotation angle in degrees
    :type parameters['angle']: float
    :param parameters['resize']: expand
    :type parameters['resize']: bool

    :return: numpy.array
    """



Add initial resize and rotate, no tests yet
Add initial resize and rotate, no tests yet

+ from skimage import transform
  
  
  def resize(parameters):
-     pass
+     """Resizes input to match a certain size.
+ 
+     Check http://scikit-image.org/docs/dev/api/skimage.transform.html#resize
+ 
+     :param parameters['data'][0]: array to resize
+     :type parameters['data'][0]: numpy.array
+     :param parameters['output_shape']: size of the output
+     :type parameters['data'][1]: tuple
+ 
+     :return: numpy.array
+     """
+     return transform.resize(parameters['data'][0], parameters['output_shape'])
  
  
  def rotate(parameters):
-     pass
+     """Rotates input anti-clockwise around its center.
+ 
+     Check http://scikit-image.org/docs/dev/api/skimage.transform.html#rotate
+ 
+     :param parameters['data'][0]: array to rotate
+     :type parameters['data'][0]: numpy.array
+     :param parameters['angle']: rotation angle in degrees
+     :type parameters['angle']: float
+     :param parameters['resize']: expand
+     :type parameters['resize']: bool
+ 
+     :return: numpy.array
+     """
  
  
  
Add initial resize and rotate, no tests yet
## Code Before:


def resize(parameters):
    pass


def rotate(parameters):
    pass



## Instruction:
Add initial resize and rotate, no tests yet
## Code After:
from skimage import transform


def resize(parameters):
    """Resizes input to match a certain size.

    Check http://scikit-image.org/docs/dev/api/skimage.transform.html#resize

    :param parameters['data'][0]: array to resize
    :type parameters['data'][0]: numpy.array
    :param parameters['output_shape']: size of the output
    :type parameters['data'][1]: tuple

    :return: numpy.array
    """
    return transform.resize(parameters['data'][0], parameters['output_shape'])


def rotate(parameters):
    """Rotates input anti-clockwise around its center.

    Check http://scikit-image.org/docs/dev/api/skimage.transform.html#rotate

    :param parameters['data'][0]: array to rotate
    :type parameters['data'][0]: numpy.array
    :param parameters['angle']: rotation angle in degrees
    :type parameters['angle']: float
    :param parameters['resize']: expand
    :type parameters['resize']: bool

    :return: numpy.array
    """


