code: def _get_automl_models(self, strategy):
      if not strategy:
          strategy = (
              h2o_cloud_extensions.settings.mlops.automl.publishing_strategy
          )
      strategy = strategy.lower()
      if not self.leader:
          warnings.warn(
              "AutoML leaderboard doesn't contain any model for publishing."
          )
          return None
      if strategy == "best":
          return [
              self.leader,
          ]
      elif strategy == "all":
          model_ids = [
              item
              for sublist in h2o.as_list(self.leaderboard["model_id"])
              for item in sublist
              if item != "model_id"
          ]
          return [h2o.get_model(model_id) for model_id in model_ids]
      else:
          warnings.warn(
              "'%s' is not valid strategy for AutoML model publishing."
              % strategy
          )
          return None
  
imports: import h2o.h2o
  from .connect import *
  from .utils import *
  from .status import _is_model_published
  from .deploy import deploy
  import warnings
  import os
  import mimetypes
  import h2o_mlops_client
  import h2o_cloud_extensions
label_desc: Use image node_id 13 for calling a global function with example usage: _get_automl_models(strategy) and returns: None, list, unknown, None