code: def test_all_hyperparameters(sagemaker_session):
      pca = PCA(
          sagemaker_session=sagemaker_session,
          algorithm_mode="regular",
          subtract_mean="True",
          extra_components=1,
          **ALL_REQ_ARGS,
      )
      assert pca.hyperparameters() == dict(
          num_components=str(ALL_REQ_ARGS["num_components"]),
          algorithm_mode="regular",
          subtract_mean="True",
          extra_components="1",
      )
  
imports: from __future__ import absolute_import
  import pytest
  from mock import Mock, patch
  from sagemaker import image_uris
  from sagemaker.amazon.pca import PCA, PCAPredictor
  from sagemaker.amazon.amazon_estimator import RecordSet
  from sagemaker.session_settings import SessionSettings
label_desc: Use image node_id 4 for calling a global function with example usage: test_all_hyperparameters(sagemaker_session) without return types