from typing import Dict


def find_job_metadata_key(json_data: Dict):
    """finds metadata key for sagemaker manifest format"""
    for key in json_data.keys():
        if key.split("-")[-1] == "metadata":
            return key