code: def test_uuid4(self):
      equal = self.assertEqual
  
      # Make sure uuid4() generates UUIDs that are actually version 4.
      for u in [self.uuid.uuid4() for i in range(10)]:
          equal(u.variant, self.uuid.RFC_4122)
          equal(u.version, 4)
  
      # Make sure the generated UUIDs are actually unique.
      uuids = {}
      for u in [self.uuid.uuid4() for i in range(1000)]:
          uuids[u] = 1
      equal(len(uuids.keys()), 1000)
  
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 17 for calling the BaseTestUUID obj's underlying member method code with example usage: obj.test_uuid4() without return types