code: def test_model_package_arn(viz, sagemaker_session):
      name = "model_package_arn"
  
      sagemaker_session.sagemaker_client.list_artifacts.return_value = {
          "ArtifactSummaries": [{"ArtifactArn": "artifact-arn"}]
      }
  
      get_list_associations_side_effect(sagemaker_session)
  
      df = viz.show(model_package_arn=name)
  
      sagemaker_session.sagemaker_client.list_artifacts.assert_called_with(
          SourceUri=name,
      )
  
      expected_calls = [
          unittest.mock.call(
              DestinationArn="artifact-arn",
          ),
          unittest.mock.call(
              SourceArn="artifact-arn",
          ),
      ]
      assert (
          expected_calls
          == sagemaker_session.sagemaker_client.list_associations.mock_calls
      )
  
      pd.testing.assert_frame_equal(get_expected_dataframe(), df)
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/lineage/test_visualizer.py
imports: from __future__ import absolute_import
  import unittest.mock
  import pandas
  from collections import OrderedDict
label_desc: Use image node_id 4 for calling a global function with example usage: test_model_package_arn(viz, sagemaker_session) without return types