code: def partial(fn, **kwargs):
      """functools.partial work-alike for functions decorated with
      fmin_pass_expr_memo_ctrl
      """
      rval = functools.partial(fn, **kwargs)
      if hasattr(fn, "fmin_pass_expr_memo_ctrl"):
          rval.fmin_pass_expr_memo_ctrl = fn.fmin_pass_expr_memo_ctrl
      return rval
  
imports: from __future__ import print_function
  from __future__ import absolute_import
  from future import standard_library
  from builtins import str
  from builtins import object
  import functools
  import logging
  import os
  import sys
  import time
  import numpy
  from .None import pyll
  from .utils import coarse_utcnow
  from .None import base
label_desc: Use image node_id 4 for calling a global function with example usage: partial(fn) and returns: rval