code: def kwarg_parser(func, kwargs):
      """Utility function for parsing keyword arguments"""
      func_kwargs = dict()
      args = func.__code__.co_varnames
      for arg in args:
          if arg in kwargs:
              func_kwargs[arg] = kwargs.pop(arg)
      return func_kwargs, kwargs
  
imports: from __future__ import division, print_function, with_statement
  import os
  import sys
  import warnings
  import subprocess
  from numpy import array
  from ..config import get_ivals
  from .exceptions import ParallelProcessingError, ParallelProcessingWarning
  from time import sleep
label_desc: Use image node_id 6 for calling a global function with example usage: kwarg_parser(func, kwargs) and returns: func_kwargs,  kwargs