code: def parse_range(rng):
      try:
          value = int(rng)
          return range(value, value + 1)
      except ValueError:
          # value is not a single number
          parts = rng.split("-")
          if len(parts) != 2:
              raise ValueError(
                  "Bad range: '%s', range must be either a number or two number separated by dash"
                  % (rng,)
              )
          start = int(parts[0])
          end = int(parts[1])
          if start > end:
              raise ValueError(
                  "Bad range: '%s', range end must larger than or equal to start"
                  % (rng,)
              )
          return range(start, end + 1)
  
file_path: DeepSpeed/deepspeed/utils/numa.py
imports: import distutils
  import os
  import psutil
  import subprocess
label_desc: Use image node_id 3 for calling a global function with example usage: parse_range(rng) and returns: range, range