code: def test_surrogates(self):
      con = self.con
      self.assertRaises(UnicodeEncodeError, con, "select '\ud8ff'")
      self.assertRaises(UnicodeEncodeError, con, "select '\udcff'")
      cur = con.cursor()
      self.assertRaises(
          UnicodeEncodeError, cur.execute, "select '\ud8ff'"
      )
      self.assertRaises(
          UnicodeEncodeError, cur.execute, "select '\udcff'"
      )
  
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 25 for calling the RegressionTests obj's underlying member method code with example usage: obj.test_surrogates() without return types