code: def wrap_icevision_adapter(adapter):
      if not isinstance(adapter.log, partial):
          adapter.log = partial(
              _log_with_name_and_prog_bar_override, adapter.log, adapter
          )
  
      if isinstance(adapter, EffDetModelAdapter) and not isinstance(
          adapter.validation_step, partial
      ):
          adapter.validation_step = partial(
              _effdet_validation_step, adapter.validation_step
          )
      return adapter
  
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 3 for calling a global function with example usage: wrap_icevision_adapter(adapter) and returns: adapter