code: def get_to_scale_cols(
      columns, anonymous_columns, scale_col, scale_idx, feature_range
  ):
      if anonymous_columns is not None:
          scale_col = [
              columns[anonymous_columns.index(col)] for col in scale_col
          ]
  
      if scale_col is not None:
          if scale_idx is not None:
              raise ValueError(
                  f"`scale_col` and `scale_idx` cannot be specified simultaneously, please check."
              )
          select_col = scale_col
      elif scale_idx is not None:
          select_col = [columns[i] for i in scale_idx]
      else:
          select_col = columns
      col_set = set(columns)
      if not all(col in col_set for col in select_col):
          raise ValueError(
              f"Given scale columns not found in data schema, please check."
          )
  
      if feature_range is not None:
          if isinstance(feature_range, dict):
              for col in select_col:
                  if col not in feature_range:
                      feature_range[col] = [0, 1]
          else:
              feature_range = {col: feature_range for col in select_col}
      if len(select_col) == 0:
          logger.warning(
              f"No cols provided. "
              f"To scale all columns, please set `scale_col` to None."
          )
      return select_col, feature_range
  
file_path: FATE/python/fate/components/components/feature_scale.py
imports: import logging
  from typing import List, Union
  from fate.arch import Context
  from fate.components.core import GUEST, HOST, Role, cpn, params
label_desc: Use image node_id 6 for calling a global function with example usage: get_to_scale_cols(columns, anonymous_columns, scale_col, scale_idx, feature_range) and returns: select_col,  feature_range