<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_error_response(code, message, status=status.BAD_REQUEST):
 """Create a fail response. Args: code (str):
 the code of the error. The title should be lowercase and underscore separated. message (dict, list, str):
 the message of the error. This can be a list, dictionary or simple string. status (int):
 the status code. Defaults to 400. Returns: Response: the response with the error. The format of the error is the following: code and message. The code could be `user_error` or `internal_error`. The message contains either a string, or a list or a dictionary. If not specify, the status will be a 400. """


    errors = dict(code=code, message=message)
    return Response(errors=errors, status=status)