def METHOD_NAME(yaml_objects, jobs_dict, mock_status):
    jobd = yaml_objects[0]
    name = jobd["metadata"].get("name")
    if not name:
        name = jobd["metadata"]["generateName"] + "testname"
        jobd["metadata"]["name"] = name
    metadata = MockDict(jobd["metadata"])
    metadata.labels = metadata.get("labels", {})
    metadata.labels["job-name"] = name  # assign name
    job_spec = MockDict(jobd["spec"])
    job_spec.backoff_limit = job_spec.get("backoffLimit", 6)  # kube defaults
    job_spec.completions = job_spec.get("completions", 1)
    job_spec.parallelism = job_spec.get("parallelism", 1)
    job_spec.suspend = job_spec.get("suspend", False)
    pod_spec = MockDict(jobd["spec"]["template"]["spec"])
    pod_spec.restart_policy = pod_spec.get("restartPolicy", "Never")
    pod_spec.preemption_policy = pod_spec.get(
        "preemptionPolicy", "PreemptLowerPriority"
    )
    pod_spec.node_name = pod_spec.get("nodeName", None)
    pod_spec.node_selector = pod_spec.get("nodeSelector", {})
    pod_spec.containers = pod_spec.get("containers")
    for i, cont in enumerate(pod_spec.containers):
        pod_spec.containers[i] = MockDict(cont)
    job_spec.template = MockDict(
        {
            "spec": pod_spec,
        }
    )
    mock_job = MockDict(
        {
            "status": mock_status,
            "spec": job_spec,
            "metadata": MockDict(metadata),
        }
    )
    jobs_dict[name] = mock_job
    return [[mock_job]]