code: def str_extractall(series, pat, flags):
      return series.str.extractall(pat, flags=flags)
  
imports: from __future__ import annotations
  import warnings
  import numpy
  import pandas
  from dask.dataframe._compat import check_to_pydatetime_deprecation
  from dask.utils import derived_from
label_desc: Use image node_id 4 for calling a global function with example usage: str_extractall(series, pat, flags) and returns: series