code: def unwrap_partial(func):
      while hasattr(func, "func"):
          func = func.func
      return func
  
imports: from __future__ import annotations
  import math
  import numbers
  import uuid
  from enum import Enum
  from dask import config, core, utils
  from dask.core import flatten, get_dependencies, ishashable, istask, reverse_dict, subs, toposort
label_desc: Use image node_id 7 for calling a global function with example usage: unwrap_partial(func) and returns: func