new_contents: import fixtures
  
  import dnfile
  
  
  def is_mixed_mode(dn: dnfile.dnPE):
      if dn.net is None or dn.net.mdtables is None:
          # no .NET metdata, must be a native PE.
          # therefore, not mixed-mode.
          return False
  
      methods = dn.net.mdtables.MethodDef
      assert methods is not None
  
      for method in methods:
          if method.ImplFlags.miNative:
              # it has a .NET header but also has a native method,
              # so its a mixed-mode assembly.
              return True
  
      return False
  
  
  def test_empty_class():
      path = fixtures.DATA / "mixed-mode" / "EmptyClass_x86.exe"
  
      dn = dnfile.dnPE(path)
  
      assert is_mixed_mode(dn) is True
  
  
  def test_module_code():
      path = fixtures.DATA / "mixed-mode" / "ModuleCode_x86.exe"
  
      dn = dnfile.dnPE(path)
  
      assert is_mixed_mode(dn) is True
  
subject: add tests demonstrating handling of mixed-mode assemblies