code: def parse_kwargs(x, kwargs):
      kwargs_list = []
      for i, item in enumerate(x):
          tmp = {}
          for kwarg in kwargs:
              if isinstance(kwargs[kwarg], (tuple, list)):
                  if len(kwargs[kwarg]) == len(x):
                      tmp[kwarg] = kwargs[kwarg][i]
                  else:
                      tmp[kwarg] = None
              else:
                  tmp[kwarg] = kwargs[kwarg]
          kwargs_list.append(tmp)
      return kwargs_list
  
imports: import functools
  import sys
  import numpy
  import copy
  from scipy.interpolate import PchipInterpolator
  import seaborn
  import itertools
  import pandas
  from matplotlib.lines import Line2D
label_desc: Use image node_id 9 for calling a global function with example usage: parse_kwargs(x, kwargs) and returns: kwargs_list