code: def verbosify(cast_fn, fn_name, verbose):
      if verbose:
          return functools.partial(
              cast_fn, name=fn_name, verbose=verbose
          )
      else:
          return cast_fn
  
imports: from .None import compat
  import functools
  import itertools
  import torch
label_desc: Use image node_id 12 for calling a global function with example usage: verbosify(cast_fn, fn_name, verbose) and returns: functools, cast_fn