code: def verify_dir_outputs(
      job_return: JobReturn, overrides: Optional[List[str]] = None
  ) -> None:
      """
      Verify that directory output makes sense
      """
      assert isinstance(job_return, JobReturn)
      assert job_return.working_dir is not None
      assert job_return.task_name is not None
      assert job_return.hydra_cfg is not None
  
      assert os.path.exists(
          os.path.join(
              job_return.working_dir, job_return.task_name + ".log"
          )
      )
      hydra_dir = os.path.join(
          job_return.working_dir,
          job_return.hydra_cfg.hydra.output_subdir,
      )
      assert os.path.exists(os.path.join(hydra_dir, "config.yaml"))
      assert os.path.exists(os.path.join(hydra_dir, "overrides.yaml"))
      assert OmegaConf.load(
          os.path.join(hydra_dir, "overrides.yaml")
      ) == OmegaConf.create(overrides or [])
  
imports: import copy
  import logging
  import os
  import re
  import shutil
  import string
  import subprocess
  import sys
  import tempfile
  from contextlib import contextmanager
  from difflib import unified_diff
  from pathlib import Path
  from subprocess import PIPE, Popen
  from typing import Any, Callable, Dict, Iterator, List, Optional, Tuple, Union
  from omegaconf import Container, DictConfig, OmegaConf
  from hydra._internal.hydra import Hydra
  from hydra._internal.utils import detect_task_name
  from hydra.core.global_hydra import GlobalHydra
  from hydra.core.utils import JobReturn, validate_config_path
  from hydra.types import TaskFunction
label_desc: Use image node_id 6 for calling a global function with example usage: verify_dir_outputs(job_return, overrides) without return types