code: def _fetch_table(table, key=None, progress_bar=True):
      try:
          # Intentionally mask the progress bar here since showing multiple progress bars is confusing to users.
          # If any failure happens, revert back to user's original setting for progress and display the error message.
          ori_progress_state = H2OJob.__PROGRESS_BAR__
          H2OJob.__PROGRESS_BAR__ = progress_bar
          # Parse leaderboard H2OTwoDimTable & return as an H2OFrame
          fr = h2o.H2OFrame(
              table.cell_values,
              destination_frame=key,
              column_names=table.col_header,
              column_types=table.col_types,
          )
          return h2o.assign(
              fr[1:], key
          )  # removing index and reassign id to ensure persistence on backend
      finally:
          H2OJob.__PROGRESS_BAR__ = ori_progress_state
  
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 2 for calling a global function with example usage: _fetch_table(table, key, progress_bar) and returns: h2o