code: def test_init_estimator_args(sagemaker_session):
      pca = PCA(
          num_components=1,
          max_run=1234,
          sagemaker_session=sagemaker_session,
          data_location="s3://some-bucket/some-key/",
          **COMMON_ARGS,
      )
      assert pca.instance_type == COMMON_ARGS["instance_type"]
      assert pca.instance_count == COMMON_ARGS["instance_count"]
      assert pca.role == COMMON_ARGS["role"]
      assert pca.max_run == 1234
      assert pca.data_location == "s3://some-bucket/some-key/"
  
imports: from __future__ import absolute_import
  import numpy
  import pytest
  from mock import ANY, Mock, patch, call
  from sagemaker import image_uris
  from sagemaker.amazon.pca import PCA
  from sagemaker.amazon.amazon_estimator import upload_numpy_to_s3_shards, _build_shards, FileSystemRecordSet
  from sagemaker.session_settings import SessionSettings
  from tests.unit import DEFAULT_S3_OBJECT_KEY_PREFIX_NAME, DEFAULT_S3_BUCKET_NAME, _test_default_bucket_and_prefix_combinations
label_desc: Use image node_id 5 for calling a global function with example usage: test_init_estimator_args(sagemaker_session) without return types