code: def test_get_id_from_submission_command(
      string: str, expected: str
  ) -> None:
      output = slurm.SlurmExecutor._get_job_id_from_submission_command(
          string
      )
      assert output == expected
  
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 21 for calling a global function with example usage: test_get_id_from_submission_command(string, expected) without return types