code: def decode_sagemaker_parameters(encoded_params: dict) -> dict:
      """
      Decode a SageMaker parameters dictionary where all values are strings.
  
      Example:
  
      >>> decode_sagemaker_parameters({
      ...     "foo": "[1, 2, 3]",
      ...     "bar": "hello"
      ... })
      {'foo': [1, 2, 3], 'bar': 'hello'}
      """
      return valmap(decode_sagemaker_parameter, encoded_params)
  
file_path: gluonts/src/gluonts/shell/sagemaker/params.py
imports: from itertools import count
  from typing import Any, Union
  from toolz import valmap
  from gluonts.core.serde import dump_json, load_json
  from gluonts.itertools import batcher
label_desc: Use image node_id 3 for calling a global function with example usage: decode_sagemaker_parameters(encoded_params) and returns: valmap