code: def _merge_tfms(*tfms):
      "Group the `tfms` in a single list, removing duplicates (from the same class) and instantiating"
      g = groupby(concat(*tfms), _merge_grouper)
      return L(v[-1] for k, v in g.items()).map(instantiate)
  
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 5 for calling a global function with example usage: _merge_tfms() and returns: L