code: def test_pickle_roundtrip(self):
      def check(actual, expected):
          self.assertEqual(actual, expected)
          self.assertEqual(actual.is_safe, expected.is_safe)
  
      with support.swap_item(sys.modules, "uuid", self.uuid):
          for is_safe in self.uuid.SafeUUID:
              u = self.uuid.UUID(
                  "d82579ce6642a0de7ddf490a7aec7aa5", is_safe=is_safe
              )
              check(copy.copy(u), u)
              check(copy.deepcopy(u), u)
              for proto in range(pickle.HIGHEST_PROTOCOL + 1):
                  with self.subTest(protocol=proto):
                      check(pickle.loads(pickle.dumps(u, proto)), u)
  
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 5 for calling the BaseTestUUID obj's underlying member method code with example usage: obj.test_pickle_roundtrip() without return types