code: def construct_action_scale_tensor(
      action_norm_params, action_scale_overrides
  ):
      """Construct tensors that will rescale each action value on each dimension i
      from [min_serving_value[i], max_serving_value[i]] to [-1, 1] for training.
      """
      sorted_features, _ = sort_features_by_normalization(
          action_norm_params
      )
      min_action_array = np.zeros((1, len(sorted_features)))
      max_action_array = np.zeros((1, len(sorted_features)))
  
      for idx, feature_id in enumerate(sorted_features):
          if feature_id in action_scale_overrides:
              min_action_array[0][idx] = action_scale_overrides[
                  feature_id
              ][0]
              max_action_array[0][idx] = action_scale_overrides[
                  feature_id
              ][1]
          else:
              min_action_array[0][idx] = action_norm_params[
                  feature_id
              ].min_value
              max_action_array[0][idx] = action_norm_params[
                  feature_id
              ].max_value
  
      min_action_range_tensor_serving = torch.from_numpy(
          min_action_array
      )
      max_action_range_tensor_serving = torch.from_numpy(
          max_action_array
      )
      return (
          min_action_range_tensor_serving,
          max_action_range_tensor_serving,
      )
  
imports: import json
  import logging
  from dataclasses import asdict
  from typing import Dict, List, Optional, Tuple
  import numpy
  import reagent.core.types
  import six
  import torch
  from reagent.core.parameters import NormalizationParameters
  from reagent.preprocessing import identify_types
  from reagent.preprocessing.identify_types import DEFAULT_MAX_UNIQUE_ENUM, FEATURE_TYPES
  from scipy import stats
  from scipy.stats.mstats import mquantiles
label_desc: Use image node_id 11 for calling a global function with example usage: construct_action_scale_tensor(action_norm_params, action_scale_overrides) and returns: min_action_range_tensor_serving,  max_action_range_tensor_serving