code: def test_core_binding_arguments():
      core_list = parse_range_list("0,2-4,6,8-9")
      assert core_list == [0, 2, 3, 4, 6, 8, 9]
  
      try:
          # negative case for range overlapping
          core_list = parse_range_list("0,2-6,5-9")
      except ValueError as e:
          pass
      else:
          # invalid core list must fail
          assert False
  
      try:
          # negative case for reverse order -- case 1
          core_list = parse_range_list("8,2-6")
      except ValueError as e:
          pass
      else:
          # invalid core list must fail
          assert False
  
      try:
          # negative case for reverse order -- case 2
          core_list = parse_range_list("1,6-2")
      except ValueError as e:
          pass
      else:
          # invalid core list must fail
          assert False
  
file_path: DeepSpeed/tests/unit/launcher/test_ds_arguments.py
imports: import argparse
  import pytest
  import deepspeed
  from deepspeed.utils.numa import parse_range_list
label_desc: Use image node_id 8 for calling a global function with example usage: test_core_binding_arguments() without return types