code: def sample_in_line_scale(lst: List, num_points: int) -> List:
      indices = np.linspace(0, len(lst) - 1, num_points, dtype=int)
      # Remove any duplicate indices
      indices = np.unique(indices)
      return list(indices)
  
file_path: singa/examples/model_selection/TRAILS-Database-Native-Model-Selection/internal/ml/model_selection/src/tools/compute.py
imports: from typing import List
  import numpy
label_desc: Use image node_id 7 for calling a global function with example usage: sample_in_line_scale(lst, num_points) and returns: list