code: def update_current_task(task, **_):
      if fastai is None:
          return
  
      # noinspection PyBroadException
      try:
          if Version(fastai.__version__) < Version("2.0.0"):
              PatchFastaiV1.update_current_task(task)
              PostImportHookPatching.add_on_import(
                  "fastai", PatchFastaiV1.patch_model_callback
              )
          else:
              PatchFastaiV2.update_current_task(task)
              PostImportHookPatching.add_on_import(
                  "fastai", PatchFastaiV2.patch_model_callback
              )
      except Exception:
          pass
  
imports: import sys
  import numpy
  from clearml.utilities.version import Version
  from .None import _patched_call
  from .tensorflow_bind import WeightsGradientHistHelper
  from ..import_bind import PostImportHookPatching
  from ...debugging.log import LoggerRoot
  from .tensorflow_bind import IsTensorboardInit
label_desc: Use image node_id 1 for calling the PatchFastai obj's underlying member method code with example usage: obj.update_current_task(task) without return types