Executes Python code in a persistent session. Takes `code` (Python code to execute) and `session_id` as required arguments. Maintains separate state for each session. Supports both expressions and statements. Captures and returns stdout/stderr output.