class_docstr: Progress bar implementation that uses html <progress> tag.
class_docstr_tok: ["Progress","bar","implementation","that","uses","html","<","progress",">","tag","."]
docstr: Create progress bar label.
code: def create_label(
      cls,
      item: int,
      total: int,
      seconds_passed: int,
      metadata: t.Optional[t.Mapping[str, t.Any]] = None,
  ):
      """Create progress bar label."""
      minutes = seconds_passed // 60
      seconds = seconds_passed - (minutes * 60)
      minutes = f"0{minutes}" if minutes < 10 else str(minutes)
      seconds = f"0{seconds}" if seconds < 10 else str(seconds)
  
      if metadata:
          metadata_string = ", ".join(
              f"{k}={str(v)}" for k, v in metadata.items()
          )
          metadata_string = f", {metadata_string}"
      else:
          metadata_string = ""
  
      return (
          f"{item}/{total} [Time: {minutes}:{seconds}{metadata_string}]"
      )
  
imports: import logging
  import os
  import time
  import typing
  from functools import lru_cache
  import plotly.io
  import tqdm
  from ipykernel.zmqshell import ZMQInteractiveShell
  from IPython import get_ipython
  from IPython.display import display
  from IPython.terminal.interactiveshell import TerminalInteractiveShell
  from tqdm.notebook import tqdm
  from deepchecks.utils.logger import get_verbosity
label_desc: Use image node_id 9 for calling the HtmlProgressBar obj's underlying member method code with example usage: obj.create_label(cls, item, total, seconds_passed, metadata) and returns: item, str, total, str, minutes, str, seconds, metadata_string, str