code: def test_slurm_through_auto(
      params: tp.Dict[str, int], tmp_path: Path
  ) -> None:
      with mocked_slurm():
          executor = submitit.AutoExecutor(folder=tmp_path)
          executor.update_parameters(
              **params, slurm_additional_parameters={"mem_per_gpu": 12}
          )
          job = executor.submit(test_core.do_nothing, 1, 2, blublu=3)
      text = job.paths.submission_file.read_text()
      mem_lines = [x for x in text.splitlines() if "#SBATCH --mem" in x]
      assert len(mem_lines) == 1, f"Unexpected lines: {mem_lines}"
  
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 32 for calling a global function with example usage: test_slurm_through_auto(params, tmp_path) without return types