code: def test_all_hyperparameters(sagemaker_session):
      randomcutforest = RandomCutForest(
          sagemaker_session=sagemaker_session,
          num_trees=NUM_TREES,
          num_samples_per_tree=NUM_SAMPLES_PER_TREE,
          eval_metrics=EVAL_METRICS,
          **ALL_REQ_ARGS,
      )
      assert randomcutforest.hyperparameters() == dict(
          num_samples_per_tree=str(NUM_SAMPLES_PER_TREE),
          num_trees=str(NUM_TREES),
          eval_metrics='["accuracy", "precision_recall_fscore"]',
      )
  
imports: from __future__ import absolute_import
  import pytest
  from mock import Mock, patch
  from sagemaker import image_uris
  from sagemaker.amazon.randomcutforest import RandomCutForest, RandomCutForestPredictor
  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