code: def _log_with_name_and_prog_bar_override(
      log, adapter, name, value, **kwargs
  ):
      if "prog_bar" not in kwargs:
          kwargs["prog_bar"] = True
      metric = name.split("/")[-1]
      metric = f"{_STAGES_PREFIX[adapter.trainer.state.stage]}_{metric}"
      return log(metric, value, **kwargs)
  
imports: from functools import partial
  import torch
  from flash.core.data.utils import _STAGES_PREFIX
  from flash.core.utilities.imports import _ICEVISION_AVAILABLE
label_desc: Use image node_id 1 for calling a global function with example usage: _log_with_name_and_prog_bar_override(log, adapter, name, value) and returns: log