code: def _get_core_indices(cores_str):
      """
      Generate a dictionary of cpu core indices.
      Args:
          cores_str (str): a string with format "start_idx-end_idx".
      Return:
          cpu_core_indices (list): a list collected all indices in [start_idx, end_idx].
      Example:
          cores_str = '0-20'
          cpu_core_indices = [0, 1, 2, ..., 18, 19, 20]
      """
      start, end = cores_str.split("-")
      return [*range(int(start), int(end) + 1)]
  
imports: import os
  import logging
  import paddle
label_desc: Use image node_id 3 for calling a global function with example usage: _get_core_indices(cores_str) and returns: list