code: def test_init_required_named(sagemaker_session):
      ipinsights = IPInsights(
          sagemaker_session=sagemaker_session, **ALL_REQ_ARGS
      )
  
      assert ipinsights.role == COMMON_TRAIN_ARGS["role"]
      assert ipinsights.instance_count == INSTANCE_COUNT
      assert (
          ipinsights.instance_type == COMMON_TRAIN_ARGS["instance_type"]
      )
      assert ipinsights.num_entity_vectors == NUM_ENTITY_VECTORS
      assert ipinsights.vector_dim == VECTOR_DIM
  
imports: from __future__ import absolute_import
  import pytest
  from mock import Mock, patch
  from sagemaker import image_uris
  from sagemaker.amazon.ipinsights import IPInsights, IPInsightsPredictor
  from sagemaker.amazon.amazon_estimator import RecordSet
  from sagemaker.session_settings import SessionSettings
label_desc: Use image node_id 3 for calling a global function with example usage: test_init_required_named(sagemaker_session) without return types