code: def test_uuid5(self):
      equal = self.assertEqual
  
      # Test some known version-5 UUIDs with names given as byte objects
      for u, v in [
          (
              self.uuid.uuid5(self.uuid.NAMESPACE_DNS, b"python.org"),
              "886313e1-3b8a-5372-9b90-0c9aee199e5d",
          ),
          (
              self.uuid.uuid5(
                  self.uuid.NAMESPACE_URL, b"http://python.org/"
              ),
              "4c565f0d-3f5a-5890-b41b-20cf47701c5e",
          ),
          (
              self.uuid.uuid5(self.uuid.NAMESPACE_OID, b"1.3.6.1"),
              "1447fa61-5277-5fef-a9b3-fbc6e44f4af3",
          ),
          (
              self.uuid.uuid5(self.uuid.NAMESPACE_X500, b"c=ca"),
              "cc957dd1-a972-5349-98cd-874190002798",
          ),
      ]:
          equal(u.variant, self.uuid.RFC_4122)
          equal(u.version, 5)
          equal(u, self.uuid.UUID(v))
          equal(str(u), v)
  
      # Test some known version-5 UUIDs with names given as strings
      for u, v in [
          (
              self.uuid.uuid5(self.uuid.NAMESPACE_DNS, "python.org"),
              "886313e1-3b8a-5372-9b90-0c9aee199e5d",
          ),
          (
              self.uuid.uuid5(
                  self.uuid.NAMESPACE_URL, "http://python.org/"
              ),
              "4c565f0d-3f5a-5890-b41b-20cf47701c5e",
          ),
          (
              self.uuid.uuid5(self.uuid.NAMESPACE_OID, "1.3.6.1"),
              "1447fa61-5277-5fef-a9b3-fbc6e44f4af3",
          ),
          (
              self.uuid.uuid5(self.uuid.NAMESPACE_X500, "c=ca"),
              "cc957dd1-a972-5349-98cd-874190002798",
          ),
      ]:
          equal(u.variant, self.uuid.RFC_4122)
          equal(u.version, 5)
          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 18 for calling the BaseTestUUID obj's underlying member method code with example usage: obj.test_uuid5() without return types