code: def _patched_get_blocks(original_fn, *args, **kwargs):
      blocks = original_fn(*args, **kwargs)
      if not PatchGradio._current_task or not running_remotely():
          return blocks
      blocks.config["root"] = PatchGradio._root_path_format.format(
          PatchGradio._current_task.id
      )
      blocks.root = blocks.config["root"]
      return blocks
  
file_path: clearml/clearml/binding/gradio_bind.py
imports: import sys
  from logging import getLogger
  from .frameworks import _patched_call
  from .import_bind import PostImportHookPatching
  from ..utilities.networking import get_private_ip
  from ..config import running_remotely
label_desc: Use image node_id 3 for calling the PatchGradio obj's underlying member method code with example usage: obj._patched_get_blocks(original_fn) and returns: blocks, blocks