code: def test_pt_enable_sm_metrics(
      sagemaker_session,
      pytorch_training_version,
      pytorch_training_py_version,
  ):
      pytorch = _pytorch_estimator(
          sagemaker_session,
          framework_version=pytorch_training_version,
          py_version=pytorch_training_py_version,
          enable_sagemaker_metrics=True,
      )
      assert pytorch.enable_sagemaker_metrics
  
imports: from __future__ import absolute_import
  import logging
  import json
  import os
  import pytest
  from mock import ANY, MagicMock, Mock, patch
  from packaging.version import Version
  from sagemaker import image_uris
  from sagemaker.pytorch import defaults
  from sagemaker.pytorch import PyTorch, PyTorchPredictor, PyTorchModel
  from sagemaker.instance_group import InstanceGroup
  from sagemaker.session_settings import SessionSettings
label_desc: Use image node_id 22 for calling a global function with example usage: test_pt_enable_sm_metrics(sagemaker_session, pytorch_training_version, pytorch_training_py_version) without return types