code: def test_collation(self):
      def collation_cb(a, b):
          return 1
  
      self.assertRaises(
          UnicodeEncodeError,
          self.con.create_collation,
          # Lone surrogate cannot be encoded to the default encoding (utf8)
          "\uDC80",
          collation_cb,
      )
  
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 20 for calling the RegressionTests obj's underlying member method code with example usage: obj.test_collation() and returns: int