code: def read_hyperparameters():  # type: () -> dict
      
      hyperparameters = _read_json(hyperparameters_file_dir)
  
      deserialized_hps = {}
  
      for k, v in hyperparameters.items():
          try:
              v = json.loads(v)
          except (ValueError, TypeError):
              logger.info("Failed to parse hyperparameter %s value %s to Json.\n"
                          "Returning the value itself", k, v)
  
          deserialized_hps[k] = v
  
      return deserialized_hps
docs: Read the hyperparameters from /opt/ml/input/config/hyperparameters.json.
  
      For more information about hyperparameters.json:
      https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms-training-algo.html#your-algorithms-training-algo-running-container-hyperparameters
  
      Returns:
           (dict[string, object]): a dictionary containing the hyperparameters.