code: def _extract_dataframe_or_series_kws(self, kws, **kw):
      if kws is None:
          kws = [kw]
      new_kws = []
      new_output_types = []
      for output_type, kwargs in zip(self._output_types, kws):
          if output_type == OutputType.df_or_series:
              data_params = kwargs["data_params"]
              data_type = kwargs["data_type"]
              if data_type == "series":
                  new_output_types.append(OutputType.series)
              else:
                  new_output_types.append(OutputType.dataframe)
              new_kws.append(data_params)
          else:
              new_output_types.append(output_type)
              new_kws.append(kwargs)
      self._output_types = new_output_types
      return new_kws
  
file_path: mars/mars/dataframe/fetch/core.py
imports: from ...core import OutputType, register_fetch_class
  from ...core.operand import Fetch, FetchShuffle, FetchMixin
  from ...serialization.serializables import FieldTypes, TupleField
  from ...utils import on_serialize_shape, on_deserialize_shape
  from ..operands import DataFrameOperandMixin
label_desc: Use image node_id 2 for calling the DataFrameFetch obj's underlying member method code with example usage: obj._extract_dataframe_or_series_kws(kws) and returns: new_kws