code: def _get_experiment(mlops_connection, project, model_id):
      experiments = (
          mlops_connection.storage.experiment.list_experiments(
              h2o_mlops_client.StorageListExperimentsRequest(
                  project_id=project.id,
                  filter=QueryUtils.filter_by("display_name", model_id),
              )
          ).experiment
      )
      if len(experiments) == 0:
          return None
      if len(experiments) > 1:
          warnings.warn(
              "The MLops instance contains more experiments with "
              "display_name '%s'. Choosing an experiment with id '%s'."
              % (model_id, experiments[0].id)
          )
      return experiments[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 9 for calling a global function with example usage: _get_experiment(mlops_connection, project, model_id) and returns: experiments, None