code: def _create_model_artifact(self, uri: str) -> types.Artifact:
      result = types.Artifact(self._model_type)
      result.uri = uri
      return result
  
imports: import os
  from unittest import mock
  import tensorflow
  from tfx import types
  from tfx import version
  from tfx.dsl.compiler import constants
  from tfx.orchestration import metadata
  from tfx.orchestration.portable import execution_publish_utils
  from tfx.orchestration.portable import inputs_utils
  from tfx.orchestration.portable import resolver_node_handler
  from tfx.orchestration.portable import runtime_parameter_utils
  from tfx.orchestration.portable.input_resolution import exceptions
  from tfx.orchestration.portable.mlmd import context_lib
  from tfx.proto.orchestration import pipeline_pb2
  from tfx.types import artifact_utils
  from tfx.utils import test_case_utils
label_desc: Use image node_id 2 for calling the ResolverNodeHandlerTest obj's underlying member method code with example usage: obj._create_model_artifact(uri) and returns: result