def copy(self, keypoints=None, shape=None):
result = copy.copy(self)<EOL>if keypoints is not None:<EOL><INDENT>result.keypoints = keypoints<EOL><DEDENT>if shape is not None:<EOL><INDENT>result.shape = shape<EOL><DEDENT>return result<EOL>
Create a shallow copy of the KeypointsOnImage object.

Parameters
----------
keypoints : None or list of imgaug.Keypoint, optional
    List of keypoints on the image. If ``None``, the instance's
    keypoints will be copied.

shape : tuple of int, optional
    The shape of the image on which the keypoints are placed.
    If ``None``, the instance's shape will be copied.

Returns
-------
imgaug.KeypointsOnImage
    Shallow copy.