def METHOD_NAME(materialization_event):
    for key, value in materialization_event.event_specific_data.materialization.metadata.items():
        if isinstance(value, (NotebookMetadataValue, PathMetadataValue)):
            return value.path