code: def _fetch_leaderboard(aml_id, extensions=None):
      assert_is_type(extensions, None, str, [str])
      extensions = (
          []
          if extensions is None
          else [extensions]
          if is_type(extensions, str)
          else extensions
      )
      resp = h2o.api(
          "GET /99/Leaderboards/%s" % aml_id,
          data=dict(extensions=extensions),
      )
      dest_key = (
          resp["project_name"].split("@", 1)[0] + "_custom_leaderboard"
      )
      return _fetch_table(
          resp["table"], key=dest_key, progress_bar=False
      )
  
imports: import h2o
  from h2o.base import Keyed
  from h2o.exceptions import H2OValueError
  from h2o.job import H2OJob
  from h2o.model import ModelBase
  from h2o.utils.compatibility import *
  from h2o.utils.typechecks import assert_is_type, is_type
label_desc: Use image node_id 1 for calling a global function with example usage: _fetch_leaderboard(aml_id, extensions) and returns: _fetch_table