code: def test_realcopy_old(self):
      # Testing if the copy method created a real copy.
      h1 = hmac.HMAC.__new__(hmac.HMAC)
      h1._init_old(b"key", b"msg", digestmod="sha256")
      h2 = h1.copy()
      # Using id() in case somebody has overridden __eq__/__ne__.
      self.assertTrue(
          id(h1) != id(h2), "No real copy of the HMAC instance."
      )
      self.assertTrue(
          id(h1._inner) != id(h2._inner),
          "No real copy of the attribute 'inner'.",
      )
      self.assertTrue(
          id(h1._outer) != id(h2._outer),
          "No real copy of the attribute 'outer'.",
      )
      self.assertIs(h1._hmac, None)
  
imports: import binascii
  import functools
  import hmac
  import hashlib
  import unittest
  import unittest.mock
  import warnings
  from test.support import hashlib_helper, check_disallow_instantiation
  from _operator import _compare_digest
label_desc: Use image node_id 2 for calling the CopyTestCase obj's underlying member method code with example usage: obj.test_realcopy_old() without return types