class_docstr: Randomly paste the image onto a background canvas.
class_docstr_tok: ["Randomly","paste","the","image","onto","a","background","canvas","."]
code: def get_transform(self, img):
      img_shape = img.shape[:2]
      assert (
          self.background_shape[0] > img_shape[0]
          and self.background_shape[1] > img_shape[1]
      )
  
      y0 = self._rand_range(self.background_shape[0] - img_shape[0])
      x0 = self._rand_range(self.background_shape[1] - img_shape[1])
      l = int(x0), int(y0)
      return TransformFactory(
          name=str(self), apply_image=lambda img: self._impl(img, l)
      )
  
imports: import numpy
  from abc import abstractmethod
  from .base import ImageAugmentor
  from .transform import TransformFactory
label_desc: Use image node_id 1 for calling the RandomPaste obj's underlying member method code with example usage: obj.get_transform(img) and returns: TransformFactory