code: def verify_file(real_source_filename, real_bytecode_filename):
      
      tempdir = tempfile.gettempdir()
      source_filename = os.path.join(tempdir, "testing.py")
      if not os.path.exists(real_source_filename):
          return
      try:
          f = open(real_source_filename, 'U')
      except:
          return
  
      codestring = f.read()
      f.close()
  
      codeobject1 = compile(codestring, source_filename,'exec')
  
      (version, timestamp, magic_int, codeobject2, is_pypy,
       source_size) = load_module(real_bytecode_filename)
  
      # A hack for PyPy 3.2
      if magic_int == 3180+7:
          magic_int = 48
  
      assert MAGIC == magics.int2magic(magic_int), \
        ("magic_int %d vs %d in %s/%s" %
             (magic_int, magics.magic2int(MAGIC), os.getcwd(), real_bytecode_filename))
      bytecode_filename1 = os.path.join(tempdir, "testing1.pyc")
      dump_compile(codeobject1, bytecode_filename1, timestamp, MAGIC)
      (version, timestamp, magic_int, codeobject3, is_pypy,
       source_size) = load_module(real_bytecode_filename, fast_load=not is_pypy)
  
      # compare_code(codeobject1, codeobject2)
      # compare_code(codeobject2, codeobject3)
  
      bytecode_filename2 = os.path.join(tempdir, "testing2.pyc")
      dump_compile(codeobject1, bytecode_filename2, timestamp, magics.int2magic(magic_int))
  
      compare_bytecode_files(bytecode_filename1, bytecode_filename2)
      return
docs: Compile *real_source_filename* using
      the running Python interpreter. Then
      write bytecode out to a new place again using
      Python's routines.
  
      Next load it in using two of our routines.
      Compare that the code objects there are equal.
  
      Next write out the bytecode (using the same Python
      bytecode writin routine as in step 1.
  
      Finally compare the bytecode files.