code: def test_null_character(self):
      # Issue #21147
      cur = self.con.cursor()
      queries = ["\0select 1", "select 1\0"]
      for query in queries:
          with self.subTest(query=query):
              self.assertRaisesRegex(
                  sqlite.ProgrammingError,
                  "null char",
                  self.con.execute,
                  query,
              )
          with self.subTest(query=query):
              self.assertRaisesRegex(
                  sqlite.ProgrammingError,
                  "null char",
                  cur.execute,
                  query,
              )
  
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 24 for calling the RegressionTests obj's underlying member method code with example usage: obj.test_null_character() without return types