docstr: The interpreter shouldn't crash in case Cursor.__init__() is called
  more than once.
code: def test_bpo31770(self):
      """
      The interpreter shouldn't crash in case Cursor.__init__() is called
      more than once.
      """
  
      def callback(*args):
          pass
  
      cur = sqlite.Cursor(self.con)
      ref = weakref.ref(cur, callback)
      cur.__init__(self.con)
      del cur
      # The interpreter shouldn't crash when ref is collected.
      del ref
      support.gc_collect()
  
imports: import datetime
  import unittest
  import sqlite3
  import weakref
  import functools
  from test import support
  from unittest.mock import patch
  from .util import memory_database, cx_limit
  from .util import MemoryDatabaseMixin
label_desc: Use image node_id 28 for calling the RegressionTests obj's underlying member method code with example usage: obj.test_bpo31770() without return types