code: def _apply_pipeline(p, x):
      print(f"  {p}\n    starting from\n      {_short_repr(x)}")
      for f in p.fs:
          name = f.name
          try:
              x = f(x)
              if name != "noop":
                  print(
                      f"    applying {name} gives\n      {_short_repr(x)}"
                  )
          except Exception as e:
              print(f"    applying {name} failed.")
              raise e
      return x
  
imports: from __future__ import annotations
  from ..torch_basics import *
  from .core import *
  from .load import *
  from .external import *
  from .transforms import *
  from inspect import isfunction, ismethod
  from .load import _collate_types
label_desc: Use image node_id 8 for calling a global function with example usage: _apply_pipeline(p, x) and returns: x