code: def _create_generic_data_series(**kwargs):
      keywords = ["annotations", "markers", "fill", "rectangles"]
      series = []
      for kw in keywords:
          dictionaries = kwargs.pop(kw, [])
          if dictionaries is None:
              dictionaries = []
          if isinstance(dictionaries, dict):
              dictionaries = [dictionaries]
          for d in dictionaries:
              args = d.pop("args", [])
              series.append(GenericDataSeries(kw, *args, **d))
      return series
  
imports: from sympy.plotting.series import BaseSeries, GenericDataSeries
  from sympy.utilities.exceptions import sympy_deprecation_warning
  from sympy.utilities.iterables import is_sequence
label_desc: Use image node_id 3 for calling a global function with example usage: _create_generic_data_series() and returns: series