<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def load_json_body(handler):
 """ Automatically deserialize event bodies with json.loads. Automatically returns a 400 BAD REQUEST if there is an error while parsing. Usage:: 'bar' note that ``event['body']`` is already a dictionary and didn't have to explicitly be parsed. """

    @wraps(handler)
    def wrapper(event, context):
        if isinstance(event.get('body'), str):
            try:
                event['body'] = json.loads(event['body'])
            except:
                return {'statusCode': 400, 'body': 'BAD REQUEST'}
        return handler(event, context)

    return wrapper