code: def _get_artifact(mlops_connection, experiment):
      if not experiment:
          return None
      artifacts = (
          mlops_connection.storage.artifact.list_entity_artifacts(
              h2o_mlops_client.StorageListEntityArtifactsRequest(
                  entity_id=experiment.id,
              )
          ).artifact
      )
      if len(artifacts) == 0:
          return None
      if len(artifacts) > 1:
          warnings.warn(
              "The MLops instance contains more artifact for the experiment with display_name '%s'. "
              "Choosing an artifact with id '%s'."
              % (experiment.display_name, artifacts[0].id)
          )
      return artifacts[0]
  
imports: import h2o_cloud_extensions
  import h2o_mlops_client
  import time
  import h2o
  from .status import _is_model_deployed, _is_model_published
  from .connect import *
  from .utils import *
label_desc: Use image node_id 10 for calling a global function with example usage: _get_artifact(mlops_connection, experiment) and returns: artifacts, None, None