<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def raise_ise(text):
 """Turn a failed request response into a BackendError that represents an Internal Server Error. Handy for reflecting HTTP errors from farther back in the call chain as failures of your service. Parameters text: `str` Error text. Raises ------ :class:`apikit.BackendError` The `status_code` will be `500`, and the reason `Internal Server Error`. Its `content` will be the text you passed. """

    if isinstance(text, Exception):
        # Just in case we are exuberantly passed the entire Exception and
        #  not its textual representation.
        text = str(text)
    raise BackendError(status_code=500,
                       reason="Internal Server Error",
                       content=text)