code: def check_kwargs(
      global_kwargs, values, local_kwargs=None, clean_origin=False
  ):
      local_kwargs = {} if not local_kwargs else local_kwargs
      for kw in values:
          if kw in global_kwargs:
              local_kwargs[kw] = global_kwargs[kw]
              if clean_origin:
                  del global_kwargs[kw]
      return local_kwargs
  
imports: import pickle
  import six
  import copy
label_desc: Use image node_id 13 for calling a global function with example usage: check_kwargs(global_kwargs, values, local_kwargs, clean_origin) and returns: local_kwargs