def METHOD_NAME():
    pydevd_base_schema.BaseSchema.initialize_ids_translation()
    stack_trace_arguments = pydevd_schema.StackTraceArguments(threadId=1)
    stack_trace_request = pydevd_schema.StackTraceRequest(stack_trace_arguments)
    stackFrames = [
        pydevd_schema.StackFrame(id=2 ** 45, name='foo', line=1, column=1).to_dict(),
        pydevd_schema.StackFrame(id=2 ** 46, name='bar', line=1, column=1).to_dict(),
    ]
    body = pydevd_schema.StackTraceResponseBody(stackFrames)
    stack_trace_response = pydevd_base_schema.build_response(stack_trace_request, kwargs=dict(body=body))
    as_dict = stack_trace_response.to_dict(update_ids_to_dap=True)
    assert as_dict == {
        'type': 'response',
        'request_seq':-1,
        'success': True,
        'command': 'stackTrace',
        'body': {'stackFrames': [
            {'id': 1, 'name': 'foo', 'line': 1, 'column': 1, 'source': {}},
            {'id': 2, 'name': 'bar', 'line': 1, 'column': 1, 'source': {}},
        ]},
        'seq':-1}
    reconstructed = pydevd_base_schema.from_dict(as_dict, update_ids_from_dap=True)
    assert reconstructed.to_dict() == {
        'type': 'response',
        'request_seq':-1,
        'success': True,
        'command': 'stackTrace',
        'body': {'stackFrames': [
            {'id': 2 ** 45, 'name': 'foo', 'line': 1, 'column': 1, 'source': {}},
            {'id': 2 ** 46, 'name': 'bar', 'line': 1, 'column': 1, 'source': {}}
        ]},
        'seq':-1
    }