code: def _is_infra_blessed(
      type_name: str, artifact: metadata_store_pb2.Artifact
  ) -> bool:
      """Checks if an MLMD artifact is a blessed ModelInfrablessing."""
      return (
          type_name == ops_utils.MODEL_INFRA_BLESSSING_TYPE_NAME
          and artifact.custom_properties["blessing_status"].string_value
          in ["INFRA_BLESSED", "INFRA_DELEGATED"]
      )
  
imports: import collections
  import enum
  from typing import Dict
  from tfx import types
  from tfx.dsl.input_resolution import resolver_op
  from tfx.dsl.input_resolution.ops import ops_utils
  from tfx.orchestration.portable.input_resolution import exceptions
  from tfx.orchestration.portable.mlmd import event_lib
  from tfx.orchestration.portable.mlmd import filter_query_builder
  from tfx.types import artifact_utils
  from tfx.utils import typing_utils
  from ml_metadata.proto import metadata_store_pb2
  from ml_metadata.tools.mlmd_resolver import metadata_resolver
label_desc: Use image node_id 2 for calling a global function with example usage: _is_infra_blessed(type_name, artifact) and returns: unknown