code: def filter_kwargs(fun, kwargs):
      if not hasattr(fun, "__code__"):
          return {}
      args = fun.__code__.co_varnames[1:]
      return dict((k, v) for k, v in kwargs.items() if k in args)
  
imports: from __future__ import division
  import re
  from decimal import Decimal
  from math import ceil, cos, floor, log10, pi, sin
label_desc: Use image node_id 24 for calling a global function with example usage: filter_kwargs(fun, kwargs) and returns: dict, dict