code: def post(action, params=None, version=6):
          
          if params is None:
              params = dict()
          to_send = {
              'action': action,
              'version': version,
              'params': params
          }
  
          r = requests.post(AnkiConnect.URL, json=to_send)
          return r.json()
docs: For the documentation, see https://foosoft.net/projects/anki-connect/
  
          :param str action:
          :param dict params:
          :param int version:
          :return: