code: def _mock_log_files(
      job: Job[tp.Any], prints: str = "", errors: str = ""
  ) -> None:
      """Write fake log files"""
      filepaths = [
          str(x).replace("%j", str(job.job_id))
          for x in [job.paths.stdout, job.paths.stderr]
      ]
      for filepath, msg in zip(filepaths, (prints, errors)):
          with Path(filepath).open("w") as f:
              f.write(msg)
  
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 1 for calling a global function with example usage: _mock_log_files(job, prints, errors) without return types