code: def test_adapt_bytes(self):
      snowman = "\u2603"
      self.conn.set_client_encoding("utf8")
      a = psycopg2.extensions.QuotedString(snowman.encode("utf8"))
      a.prepare(self.conn)
      self.assertQuotedEqual(a.getquoted(), b"'\xe2\x98\x83'")
  
imports: from .None import testutils
  import unittest
  from .testutils import ConnectingTestCase, skip_if_crdb
  import psycopg2
  import psycopg2.extensions
  from psycopg2.extensions import adapt, quote_ident
label_desc: Use image node_id 5 for calling the TestStringAdapter obj's underlying member method code with example usage: obj.test_adapt_bytes() without return types