code: def test_dataset_artifacts(static_endpoint_context):
      artifacts_from_query = static_endpoint_context.dataset_artifacts()
  
      assert len(artifacts_from_query) > 0
      for artifact in artifacts_from_query:
          assert artifact.artifact_type == "DataSet"
  
file_path: sagemaker-python-sdk/tests/integ/sagemaker/lineage/test_endpoint_context.py
imports: from __future__ import absolute_import
  import time
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_dataset_artifacts(static_endpoint_context) without return types