code: def test_make_sbatch_string() -> None:
      string = slurm._make_sbatch_string(
          command="blublu bar",
          folder="/tmp",
          partition="learnfair",
          exclusive=True,
          additional_parameters={"blublu": 12},
          srun_args=["-vv", "--cpu-bind", "none"],
      )
      assert "partition" in string
      assert "--command" not in string
      assert "constraint" not in string
      record_file = Path(__file__).parent / "_sbatch_test_record.txt"
      if not record_file.exists():
          record_file.write_text(string)
      recorded = record_file.read_text()
      changes = []
      for k, (line1, line2) in enumerate(
          zip(string.splitlines(), recorded.splitlines())
      ):
          if line1 != line2:
              changes.append(f'line #{k + 1}: "{line2}" -> "{line1}"')
      if changes:
          print(string)
          print("# # # # #")
          print(recorded)
          message = ["Difference with reference file:"] + changes
          message += [
              "",
              "Delete the record file if this is normal:",
              f"rm {record_file}",
          ]
          raise AssertionError("\n".join(message))
  
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 13 for calling a global function with example usage: test_make_sbatch_string() without return types