human
Complete this python program:
def cr_uid_id_context(method):
assistant
#Here is the Python code you requested.

    """Decorate a traditional-style method that takes ``cr``, ``uid``, ``id``,
    ``context`` as parameters. Such a method::
    @api.cr_uid_id
    def method(self, cr, uid, id, args, context=None):
    may be called in both record and traditional styles, like::
    # rec = model.browse(cr, uid, id, context)
    rec.method(args)
    model.method(cr, uid, id, args, context=context)
    """
    method._api = 'cr_uid_id_context'
    return method