class_docstr: An error class with properties that meet the JSON-RPC error spec.
class_docstr_tok: ["An","error","class","with","properties","that","meet","the","JSON-RPC","error","spec","."]
code: def to_json(self):
      return {
          "code": self.code,
          "message": self.message,
          "data": self.data,
      }
  
imports: import abc
  import argparse
  import base64
  import collections
  import enum
  import io
  import json
  import logging
  import os
  import pathlib
  import re
  import select
  import sys
  import time
  import traceback
  import typing
label_desc: Use image node_id 2 for calling the JSONRPCError obj's underlying member method code with example usage: obj.to_json() and returns: dict