<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def edit(self, invoice_id, data={}, **kwargs):
 """" Update an invoice In draft state all the attributes are allowed. Args: invoice_id : Id for delete the invoice data : Dictionary having keys using which invoice have to be updated Returns: Its response is the invoice entity, similar to create/update API response. Its status now would be issued. Refer https://razorpay.com/docs/invoices/api/#entity-structure """

        url = "{}/{}".format(self.base_url, invoice_id)
        return self.patch_url(url, data, **kwargs)