def METHOD_NAME(metadata_extractors_by):
    yaml_extractor = metadata_extractors_by["name"]["yaml"]
    meta = yaml_extractor.extract_text("---\ntitle: foo\nslug: null")
    assert meta["title"] == "foo"
    assert meta["slug"] == ""