code: def test_parse_job_mode():
      assert c.JobMode.parse("CpU") == c.JobMode.CPU
      assert c.JobMode.parse("cpu") == c.JobMode.CPU
      assert c.JobMode.parse("cpU  ") == c.JobMode.CPU
  
      assert c.JobMode.parse("  GpU") == c.JobMode.GPU
      assert c.JobMode.parse("gpu") == c.JobMode.GPU
      assert c.JobMode.parse("GPU") == c.JobMode.GPU
  
      with pytest.raises(Exception):
          c.JobMode.parse("random")
  
file_path: caliban/tests/caliban/config/test_config.py
imports: import json
  import os
  from argparse import ArgumentTypeError
  import hypothesis.strategies
  from hypothesis import given
  import caliban.config
  import caliban.platform.cloud.types
  import caliban.util.schema
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: test_parse_job_mode() without return types