code: def static_image_artifact(static_dataset_artifact, sagemaker_session):
      query_filter = LineageFilter(
          entities=[LineageEntityEnum.ARTIFACT],
          sources=[LineageSourceEnum.IMAGE],
      )
      query_result = LineageQuery(sagemaker_session).query(
          start_arns=[static_dataset_artifact.artifact_arn],
          query_filter=query_filter,
          direction=LineageQueryDirectionEnum.ASCENDANTS,
          include_edges=False,
      )
      image_artifact = []
      for vertex in query_result.vertices:
          image_artifact.append(vertex.to_lineage_object())
      return image_artifact[0]
  
imports: from __future__ import absolute_import
  import time
  import boto3
  import pytest
  import logging
  import uuid
  import json
  from sagemaker.lineage import action, context, association, artifact
  from sagemaker.model import ModelPackage
  from sagemaker.utils import retry_with_backoff
  from tests.integ.sagemaker.workflow.test_workflow import test_end_to_end_pipeline_successful_execution
  from sagemaker.workflow.pipeline import _PipelineExecution
  from sagemaker.session import get_execution_role
  from smexperiments import trial_component, trial, experiment
  from random import randint
  from botocore.exceptions import ClientError
  from sagemaker.lineage.query import LineageQuery, LineageFilter, LineageSourceEnum, LineageEntityEnum, LineageQueryDirectionEnum
  from sagemaker.lineage.lineage_trial_component import LineageTrialComponent
  from tests.integ.sagemaker.lineage.helpers import name, names
label_desc: Use image node_id 37 for calling a global function with example usage: static_image_artifact(static_dataset_artifact, sagemaker_session) and returns: image_artifact