code: def test_header_mojibake(self):
      value = "\xc0msterdam"
      header_name = "value"
      header_bytes = f"{header_name}: {value}".encode("latin1")
      raw, unparsed = metadata.parse_email(header_bytes)
      # Sanity check
      with pytest.raises(UnicodeDecodeError):
          header_bytes.decode("utf-8")
      assert not raw
      assert len(unparsed) == 1
      assert header_name in unparsed
      assert unparsed[header_name] == [value]
  
imports: import pathlib
  import pytest
  from packaging import metadata, requirements, specifiers, utils, version
  from packaging.metadata import ExceptionGroup
label_desc: Use image node_id 10 for calling the TestRawMetadata obj's underlying member method code with example usage: obj.test_header_mojibake() without return types