code: def test_parse_yaml_invalid_unicode(tmp_dir):
      filename = "invalid_utf8.yaml"
      tmp_dir.gen(filename, b"\x80some: stuff")
  
      with pytest.raises(EncodingError) as excinfo:
          load_yaml(tmp_dir / filename)
  
      assert filename in excinfo.value.path
      assert excinfo.value.encoding == "utf-8"
  
label_desc: Use image node_id 2 for calling a global function with example usage: test_parse_yaml_invalid_unicode(tmp_dir) without return types