<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_example_lines(headers: Dict[str, str], method: str, url: str, params: Dict[str, Any], response: str) -> List[str]: """Render a reStructuredText example for the given request and response. :param dict headers: A dict of HTTP headers. :param str method: HTTP request method (e.g. "GET"). :param str url: HTTP request URL. :param dict params: Form parameters, for POST and PUT requests. :param str response: Text response body. :returns: list """

    lines = ['', 'Example Request:', '', '.. code-block:: bash', '']
    lines.extend(prefix_lines(
        get_example_curl_lines(method, url, params, headers), '   '))
    lines.extend(['', 'Example Response:', ''])
    try:
        # Try to parse and prettify the response as JSON. If it fails
        # (for whatever reason), we'll treat it as text instead.
        response = json.dumps(json.loads(response), indent=2,
                              separators=(',', ': '), sort_keys=True)
        lines.extend(['.. code-block:: json', ''])
    except Exception:
        lines.extend(['.. code-block:: text', ''])
    lines.extend(prefix_lines(response, '   '))
    return lines