title: Python. Design. Expanding various functions in identical way
body: <p>I have the following setting.
  I have 3 functions, draw1, draw2 and draw3.
  All of them get as input an image, and some other parameters (<strong>different</strong> parameters for various draws, but the image is always one of the parameters).</p>
  <p>For every draw function (let's say draw1), I want to define another function with the following properties:
  The parameters are the same as draw1 parameters + boolean parameter called &quot;in_place&quot;.
  If in_place=True -&gt; draw on the image with draw1 and return the image.
  If in_place=False -&gt; make a copy of the image and draw on the copy of the image with draw1 and return the copy of the image.</p>
  <p>This &quot;expansion&quot; of draw1 is <strong>identical</strong> to all the draw functions.
  How can I do this in clean way?
  Decorators can be used here?<br />
  Thanks in advance!</p>