code: def test_slurm_job_no_stderr(tmp_path: Path) -> None:
      def fail_silently():
          raise ValueError("Too bad")
  
      with mocked_slurm() as mock:
          executor = slurm.SlurmExecutor(folder=tmp_path)
          # Failed but no stderr
          job = executor.submit(fail_silently)
          _mock_log_files(job, prints="job is running ...\n")
          job._results_timeout_s = 0
          with pytest.raises(
              utils.UncompletedJobError, match="job is running ..."
          ):
              job._get_outcome_and_result()
  
          # Failed but no stderr nor stdout
          mock.set_job_state("13", "RUNNING")
          job = executor.submit(fail_silently)
          job._results_timeout_s = 0
          # Explicitly unlink stdout because submitit is writing there on startup
          # job.paths.stdout.unlink()
          with pytest.raises(
              utils.UncompletedJobError,
              match="No output/error stream produced !",
          ):
              job._get_outcome_and_result()
  
imports: import contextlib
  import os
  import signal
  import subprocess
  import typing
  from pathlib import Path
  from unittest.mock import patch
  import pytest
  import submitit
  from ..None import helpers
  from ..core import job_environment, submission, test_core, utils
  from ..core.core import Job
  from .None import slurm
label_desc: Use image node_id 33 for calling a global function with example usage: test_slurm_job_no_stderr(tmp_path) without return types