code: def test_uuid3(self):
      equal = self.assertEqual
  
      # Test some known version-3 UUIDs with name passed as a byte object
      for u, v in [
          (
              self.uuid.uuid3(self.uuid.NAMESPACE_DNS, b"python.org"),
              "6fa459ea-ee8a-3ca4-894e-db77e160355e",
          ),
          (
              self.uuid.uuid3(
                  self.uuid.NAMESPACE_URL, b"http://python.org/"
              ),
              "9fe8e8c4-aaa8-32a9-a55c-4535a88b748d",
          ),
          (
              self.uuid.uuid3(self.uuid.NAMESPACE_OID, b"1.3.6.1"),
              "dd1a1cef-13d5-368a-ad82-eca71acd4cd1",
          ),
          (
              self.uuid.uuid3(self.uuid.NAMESPACE_X500, b"c=ca"),
              "658d3002-db6b-3040-a1d1-8ddd7d189a4d",
          ),
      ]:
          equal(u.variant, self.uuid.RFC_4122)
          equal(u.version, 3)
          equal(u, self.uuid.UUID(v))
          equal(str(u), v)
  
      # Test some known version-3 UUIDs with name passed as a string
      for u, v in [
          (
              self.uuid.uuid3(self.uuid.NAMESPACE_DNS, "python.org"),
              "6fa459ea-ee8a-3ca4-894e-db77e160355e",
          ),
          (
              self.uuid.uuid3(
                  self.uuid.NAMESPACE_URL, "http://python.org/"
              ),
              "9fe8e8c4-aaa8-32a9-a55c-4535a88b748d",
          ),
          (
              self.uuid.uuid3(self.uuid.NAMESPACE_OID, "1.3.6.1"),
              "dd1a1cef-13d5-368a-ad82-eca71acd4cd1",
          ),
          (
              self.uuid.uuid3(self.uuid.NAMESPACE_X500, "c=ca"),
              "658d3002-db6b-3040-a1d1-8ddd7d189a4d",
          ),
      ]:
          equal(u.variant, self.uuid.RFC_4122)
          equal(u.version, 3)
          equal(u, self.uuid.UUID(v))
          equal(str(u), v)
  
imports: import unittest
  from test import support
  from test.support import import_helper
  import builtins
  import contextlib
  import copy
  import enum
  import io
  import os
  import pickle
  import sys
  import weakref
  from unittest import mock
label_desc: Use image node_id 16 for calling the BaseTestUUID obj's underlying member method code with example usage: obj.test_uuid3() without return types